pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Robustify pg_column_is_updatable() against overly large attnums 6+ messages / 1 participants [nested] [flat]
* pgsql: Robustify pg_column_is_updatable() against overly large attnums @ 2026-11-18 20:08 David Rowley <drowley@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: David Rowley @ 2026-11-18 20:08 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 <hackerzheng666@gmail.com> Discussion: https://postgr.es/m/19904-57a44a8aa7638ae4@postgresql.org Backpatch-through: 15 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/4892c9447e315f00be028d90a60e1e0ccfe3992d Modified Files -------------- src/backend/utils/adt/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Robustify pg_column_is_updatable() against overly large attnums @ 2026-11-18 20:09 David Rowley <drowley@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: David Rowley @ 2026-11-18 20:09 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 <hackerzheng666@gmail.com> Discussion: https://postgr.es/m/19904-57a44a8aa7638ae4@postgresql.org 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(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Robustify pg_column_is_updatable() against overly large attnums @ 2026-11-18 20:09 David Rowley <drowley@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: David Rowley @ 2026-11-18 20:09 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 <hackerzheng666@gmail.com> Discussion: https://postgr.es/m/19904-57a44a8aa7638ae4@postgresql.org Backpatch-through: 15 Branch ------ REL_18_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/3a95588fef072ab22aa276d14065ad1bf6bcc976 Modified Files -------------- src/backend/utils/adt/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Robustify pg_column_is_updatable() against overly large attnums @ 2026-11-18 20:09 David Rowley <drowley@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: David Rowley @ 2026-11-18 20:09 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 <hackerzheng666@gmail.com> Discussion: https://postgr.es/m/19904-57a44a8aa7638ae4@postgresql.org Backpatch-through: 15 Branch ------ REL_17_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/94280519a071f33198169066a4d7372c11523a84 Modified Files -------------- src/backend/utils/adt/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Robustify pg_column_is_updatable() against overly large attnums @ 2026-11-18 20:09 David Rowley <drowley@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: David Rowley @ 2026-11-18 20:09 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 <hackerzheng666@gmail.com> Discussion: https://postgr.es/m/19904-57a44a8aa7638ae4@postgresql.org Backpatch-through: 15 Branch ------ REL_16_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/79a9240c6f1394dc10ae40c75b89a9c77934ed73 Modified Files -------------- src/backend/utils/adt/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Robustify pg_column_is_updatable() against overly large attnums @ 2026-11-18 20:09 David Rowley <drowley@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: David Rowley @ 2026-11-18 20:09 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 <hackerzheng666@gmail.com> Discussion: https://postgr.es/m/19904-57a44a8aa7638ae4@postgresql.org 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(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2026-11-18 20:09 UTC | newest] Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2026-11-18 20:08 pgsql: Robustify pg_column_is_updatable() against overly large attnums David Rowley <drowley@postgresql.org> 2026-11-18 20:09 pgsql: Robustify pg_column_is_updatable() against overly large attnums David Rowley <drowley@postgresql.org> 2026-11-18 20:09 pgsql: Robustify pg_column_is_updatable() against overly large attnums David Rowley <drowley@postgresql.org> 2026-11-18 20:09 pgsql: Robustify pg_column_is_updatable() against overly large attnums David Rowley <drowley@postgresql.org> 2026-11-18 20:09 pgsql: Robustify pg_column_is_updatable() against overly large attnums David Rowley <drowley@postgresql.org> 2026-11-18 20:09 pgsql: Robustify pg_column_is_updatable() against overly large attnums David Rowley <drowley@postgresql.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox