model-writtenrun 8059 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Daniel Gustafsson reported that the second px_find_digest call in px_crypt_md5 could fail during resource allocation even when the first succeeded, leaving a broken context in use #1.
- Daniel's attached patch checks that second call, frees the first digest context on failure, and returns NULL #1.
- Tom Lane agreed that this was a bug and said he would push the fix shortly #2.
- Tom committed the patch with revised comments and unchanged executable logic as 02a75f8369, crediting Daniel and explaining that allocation failure could otherwise cause a crash.
- The fix landed after the final reply, and 02a75f8369 was backpatched to all supported branches; the thread left no outstanding work.