model-writtenrun 290 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Ashutosh Bapat reported that attaching to a nonexistent shared-memory structure with SHMEM_ATTACH_UNKNOWN_SIZE could cause integer overflow and overlapping allocations, a problem he discovered while working on resizable shared structures #1.
- His patch rejects these attachment requests, asserts that initialization receives a known size, and adds overflow protection to the shared-memory allocator #1.
- The same submission documents the attachment restriction and adds a regression test using an unknown-size request for a nonexistent area #1.
- Heikki Linnakangas committed the complete patch with cosmetic edits and an equivalent simplification of the overflow check, with backpatching through PostgreSQL 19 311df1dc03.
- Heikki closed the thread by confirming the commit and its minor cosmetic changes; no outstanding work was identified #2.