Add asserts to bimapset manipulation functions

Alexander Korotkov <akorotkov@postgresql.org>

Commit: 71a3e8c43ba8f3d026ae0cb2c2df27455ffdca76
Author: Alexander Korotkov <akorotkov@postgresql.org>
Date: 2023-12-27T01:57:57Z
Releases: 17.0
Add asserts to bimapset manipulation functions

New asserts validate that arguments are really bitmapsets.  This should help
to early detect accesses to dangling pointers.

Discussion: https://postgr.es/m/CAMbWs4_wJthNtYBL%2BSsebpgF-5L2r5zFFk6xYbS0A78GKOTFHw%40mail.gmail.com
Reviewed-by: Richard Guo, Andres Freund, Ashutosh Bapat, Andrei Lepikhov

Files

PathChange+/−
src/backend/nodes/bitmapset.c modified +63 −14

Discussion