Fix out of bound access on embedded null token

Edit
ID 6914
Title Fix out of bound access on embedded null token
CI (CFBot) Summary
Stats (from CFBot) Patch count: 1, First patch: +13−8, All patches: +13−8
Tags Bugfix
Created 2026-06-19 04:41:07
Last modified 2026-06-19 04:41:07 (2 hours ago)
Latest email 2026-06-18 14:41:32 (16 hours ago)
Status
PG20-1 (2026-07-01 – 2026-07-31): Needs review
Target version stable
Authors Ayush Tiwari (aytiwari)
Reviewers Become reviewer
Committer
Links
Emails
BUG #19525: In `contrib/dict_int`, handling a token whose first byte is a null byte causes `pnstrdup()` .
First at 2026-06-18 07:54:52 by PG Bug reporting form <noreply at postgresql.org>
Latest at 2026-06-18 14:41:32 by Ayush Tiwari <ayushtiwari.slg01 at gmail.com>
Latest attachment (0001-Fix-out-of-bounds-access-on-embedded-null-tokens-in-.patch) at 2026-06-18 14:41:32 from Ayush Tiwari <ayushtiwari.slg01 at gmail.com>
    Attachment (0001-Fix-out-of-bounds-access-on-embedded-null-tokens-in-.patch) at 2026-06-18 14:41:32 from Ayush Tiwari <ayushtiwari.slg01 at gmail.com> (Patch: Yes)
History
When Who What
2026-06-19 04:41:07 Ayush Tiwari (aytiwari) Attached mail thread 19525-b0be8e4eb7dbaf07@postgresql.org
2026-06-19 04:41:07 Ayush Tiwari (aytiwari) Created patch record
Edit