model-writtenrun 1748 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Bryan Green proposed making pgwin32_unsetenv() validate names like pgwin32_setenv(), preventing a NULL-input crash and rejecting empty names or names containing '=' with EINVAL #1.
- Michael Paquier agreed with the validation and proposed backpatching through PostgreSQL 14 to match the existing setenv() checks #2.
- Bryan explained that he discovered the issue while inspecting Windows code, confirmed the crash with a test program, and supported backpatching #3.
- Michael committed Bryan's patch with an identical code diff as 29b039e916, taking it directly from #1.
- Michael confirmed that the fix was applied through PostgreSQL 14; PostgreSQL 13 was left unchanged because it was approaching end of life and lacked the corresponding setenv() change, completing the thread's work #4.