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_15_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/8d7914fa68eaf6bc65cc64b4bf668721763d468c Modified Files -------------- src/backend/utils/adt/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
