pgsql: Add asserts to bimapset manipulation functions

From: Alexander Korotkov <akorotkov(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add asserts to bimapset manipulation functions
Date: 2023-12-27 01:58:20
Message-ID: E1rIJBc-00C50c-GT@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alexander Korotkov 2023-12-27 01:58:21 pgsql: Make replace_relid() leave argument unmodified
Previous Message Tom Lane 2023-12-26 22:58:05 pgsql: Fix failure to verify PGC_[SU_]BACKEND GUCs in pg_file_settings