model-writtenrun 766 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Yuelin Wang reported an out-of-bounds write in dict_int when a custom C helper supplied a token beginning with a null byte, and proposed checking the copied string's actual length in #1.
- Ayush Tiwari submitted #2, adding the dict_int length correction and removing an intermediate copy in dict_xsyn to address a related potential length mismatch.
- The reporter, posting as 王跃林, reviewed both changes and said they looked correct in #3.
- Tom Lane rejected the dict_int change in #4 because PostgreSQL prohibits embedded nulls in text and need not accommodate a superuser-installed helper that violates that contract; he accepted the dict_xsyn change for making the code shorter, simpler, and faster, with no backpatch planned.
- 9f03dab457 landed only the dict_xsyn portion of #2 on the development branch, retaining the original short comment and leaving the dict_int proposal rejected.