model-writtenrun 2576 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Maksim Korotkov reported that allocation failure during SN_create_env() could leave z->S null and attached a patch guarding its use in SN_close_env() with `S_size && z->S` #1.
- Tom Lane confirmed the failure scenario but required the fix to go through upstream Snowball before PostgreSQL synchronized its imported sources #2.
- Maksim Korotkov reported that upstream had applied the fix #3.
- In the thread's last message, Tom Lane proposed a full synchronization on HEAD and extraction of only the null-dereference fix for stable branches #4.
- Tom Lane subsequently committed the full synchronization, including the upstream null check, updated stemmers, new Estonian support, removal of ISO-8859-2 Romanian support, and revised synchronization instructions b464e51ab3.
- The isolated bug fix then landed for the stable branches through PostgreSQL 13, preserving the submitted approach but simplifying the guard to `z->S`; both parts of the announced plan were implemented 9c46d902b2.