model-writtenrun 747 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Xing Guo reported that a forged PostgreSQL::InServer::ARRAY object lacking the array key could crash a PL/Perl backend because hv_fetch_string() returned NULL that was dereferenced unchecked #1.
- Xing Guo supplied a pointer check in get_perl_array_ref() and a regression test showing that the forged object produces the existing error instead of crashing #1.
- Richard Guo endorsed the patch and observed that every other hv_fetch_string() caller already checked the returned pointer #2.
- Richard Guo committed the patch as 4015abe14b, preserving the safety check while simplifying and renaming the regression function and polishing its comment.
- Richard Guo announced that the fix had been committed and back-patched after cosmetic tweaks, leaving no outstanding work in the thread; the commit specifies backpatching through PostgreSQL 14 #3 4015abe14b.