Jul 2024

2 commits
Fix overflow in parsing of positional parameter
2 Jul 2024Peter Eisentrautmaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #143 of 3 reviewers saw the final version

This lands only the overflow member of #14, preserving its backend scanner change and numerology tests. In src/interfaces/ecpg/preproc/pgc.l, Peter introduces a local variable and assigns base_yylval.ival after checking ERANGE, explicitly described as a style adjustment in #19.

  • Michael Paquiersaw the final versiontrailerMichael reviewed the overflow patch and accepted its ERANGE check in #7, after which only light changes affected that patch.
  • Peter Eisentrautsaw the final versiontrailerPeter requested clearer error wording in #10 and, as committer, reviewed and adjusted the final ECPG code as reported in #19.
  • Alexander Lakhinsaw the final versiontrailerAlexander confirmed in #13 that #12 fixed the tested overflow cases, with only a light ECPG style change following for this commit.
Limit max parameter number with MaxAllocSize
2 Jul 2024Peter Eisentrautmaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #143 of 4 reviewers saw the final version

This lands only the allocation-limit member of the two-patch series in #14; its changes to src/backend/parser/parse_param.c and both prepare test files match exactly. Peter reports correcting MAX_INT to INT_MAX in the commit message in #19; the test removal reported in #21 happened afterward.

  • Alexander Lakhinsaw an earlier versionLLM analysis, 96% sureTesting #12, Alexander reported the excessive-allocation error in #13, prompting the new bound check in #14.
  • jian hesaw the final versionLLM analysis, 96% sureIn #15, jian reviewed the bound check in #14 and questioned its error message for positive parameter numbers beyond the limit.
  • Tom Lanesaw the final versionLLM analysis, 97% sureIn #17, Tom challenged the large bound in #14 and proposed tying it to the protocol's parameter-count limit.
  • Peter Eisentrautsaw the final versioncommittercommitted the patch

May 2024

1 commit
Re-forbid underscore in positional parameters
15 May 2024Peter Eisentrautmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1REL_16_STABLE16.4
LLM analysis, 99% surepart of a posted patchsetlight changesfrom patchset #52 of 2 reviewers saw the final version

This lands only the underscore-rejection member of #5, with identical changes across scan.l, psqlscan.l, pgc.l and the numerology tests, plus revised commit prose. Peter confirms its application to master and PostgreSQL 16 in #8, leaving overflow handling for later.

  • Michael Paquiersaw the final versiontrailerMichael advocated rejecting underscores in #2 and explicitly approved the revised three-scanner implementation in #7.
  • Peter Eisentrautsaw the final versioncommittercommitted the patch

Credits across 3 commits

Author
Erik Wienhold3
Reviewer
Peter Eisentrautcommitter3
Michael Paquier2
Alexander Lakhin1
Committer
Peter Eisentraut3