Robustify pg_column_is_updatable() against overly large attnums Passing an attnum sufficiently close to PG_INT16_MAX could wrap AttrNumber when offsetting for FirstLowInvalidHeapAttributeNumber, leading to an attempt to build a Bitmapset with a negative member value resulting in an ERROR, rather than returning the result as it would for other nonexistent columns.
Upgrade the type used to 32-bit to avoid this issue. Bug: #19904 Reported-by: Zheng Hacker <[email protected]> Discussion: https://postgr.es/m/[email protected] Backpatch-through: 15 Branch ------ REL_19_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/5f4f6e412ff3ade6660de8126c03d801c6c9de5b Modified Files -------------- src/backend/utils/adt/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
