Thread: pgsql: Add asserts to bimapset manipulation functions

pgsql: Add asserts to bimapset manipulation functions

From
Alexander Korotkov
Date:
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/71a3e8c43ba8f3d026ae0cb2c2df27455ffdca76

Modified Files
--------------
src/backend/nodes/bitmapset.c | 77 +++++++++++++++++++++++++++++++++++--------
1 file changed, 63 insertions(+), 14 deletions(-)