model-writtenrun 7256 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Ankit Kumar Pandey reported that a 1001-element array could cause an invalid-pointer free and server crash with gist__int_ops, while a larger 3001-element array encountered an index-size error #1.
- Ankit proposed rejecting oversized arrays immediately and attached a patch replacing the existing NOTICE with an ERROR using ERRCODE_PROGRAM_LIMIT_EXCEEDED #1.
- Ankit also asked how the pointer-header value printed by BogusFree could help diagnose the invalid free #1.
- David Rowley explained that the header bits could aid debugging and opposed interpreting them universally as MemoryChunk fields because memory contexts need not share that representation; this final thread message did not review or announce acceptance of the attached patch #2.
- Michael Paquier subsequently committed the fix as c00fbe89dc, crediting Ankit Kumar Pandey and Alexander Lakhin as authors; the supplied verdict for thread #71848 establishes Alexander’s later submission #685987 as the exact committed source, incorporating the original fix from #1, consistent limit-exceeded SQLSTATEs, and regression coverage.