Feb 2025

1 commit
Fix PQescapeLiteral()/PQescapeIdentifier() length handling
14 Feb 2025Andres Freundmaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1REL_17_STABLE17.4REL_16_STABLE16.8REL_15_STABLE15.12REL_14_STABLE14.17REL_13_STABLE13.20
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #30 of 2 reviewers saw the final version

efdadeb223 preserves both fe-exec.c hunks from #3 exactly and adds test_escape.c infrastructure for explicit input lengths, inaccessible trailing memory, and detection of escaped trailing data. Andres Freund confirms that he committed the fix with expanded tests in #8.

  • Tom Lanesaw an earlier versiontrailerTom diagnosed and supplied the original correction in #3, but the thread shows no subsequent examination by him of the substantial test infrastructure added at commit.
  • Noah Mischno review foundtrailerNoah is credited in efdadeb223, but no message or review activity by him appears in this thread.

Credits across 1 commit

Author
Andres Freund1
Tom Lane1
Reviewer
Noah Misch1
Tom Lane1
Committer
Andres Freund1