model-writtenrun 3642 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Mikhail Gribkov reported a potential buffer overflow found using the Svace static analyzer and supplied a patch tightening prefix_init()'s cipher block size check to PGP_MAX_BLOCK in #1.
- The proposed check reserves the two extra bytes needed by subsequent prefix validation instead of allowing the cipher block itself to occupy the entire temporary buffer #1.
- Daniel Gustafsson agreed after examining the code, observed that the supported ciphers appeared to make the overflow unreachable, and recommended backpatching the longstanding defect to all supported branches for consistency #2.
- Daniel committed the proposed condition change with an explanatory comment as c29022164f; the separately listed candidate b527ebc1d3 is a backport of the same change, with backpatching through PostgreSQL 12 recorded in the commit messages.
- The thread ends with Daniel's agreement and backpatch recommendation in #2; the subsequent commits complete the sole submitted fix, with no remaining patch work identified.