Jul 2020

4 commits
Fix corner case with 16kB-long decompression in pgcrypto, take 2
27 Jul 2020Michael Paquiermaster14beta1REL_19_STABLE14beta1REL_18_STABLE14beta1REL_17_STABLE14beta1REL_16_STABLE14beta1REL_15_STABLE14beta1REL_14_STABLE14beta1REL_13_STABLE13beta3+5 more
LLM analysis, 98% suremodified before commitmoderate changesfrom patchset #101 of 1 reviewer saw the final version

Combines the regression SQL and expected output from #10, the latest matching attachment, with Horiguchi's explicit terminating-packet read and error handling from #8. The commit credits Horiguchi and Michael Paquier as authors, and follows Tom Lane's request in #16 to restore the earlier implementation.

  • Tom Lanesaw the final versiontrailerRequested regression coverage in #7, then identified repeated reads after EOF and unchecked trailing bytes in #16, explicitly favoring the implementation from #8 that ultimately landed.
Fix ancient violation of zlib's API spec.
23 Jul 2020Tom Lanemaster14beta1REL_19_STABLE14beta1REL_18_STABLE14beta1REL_17_STABLE14beta1REL_16_STABLE14beta1REL_15_STABLE14beta1REL_14_STABLE14beta1REL_13_STABLE13beta3+5 more
LLM analysis, 100% surewritten from the discussion, no matching patch

Implements Tom Lane's inline fix in #20: initialize next_in and avail_in before the compress_process() loop and preserve deflate()'s progress between calls. The commit additionally uses Z_NO_FLUSH and adjusts whitespace; none of the attached patchsets fixes this compression-side bug.

Revert "Fix corner case with PGP decompression in pgcrypto"
22 Jul 2020Michael Paquiermaster14beta1REL_19_STABLE14beta1REL_18_STABLE14beta1REL_17_STABLE14beta1REL_16_STABLE14beta1REL_15_STABLE14beta1REL_14_STABLE14beta1REL_13_STABLE13beta3+5 morereverts 1 commit here
LLM analysis, 100% surewritten from the discussion, no matching patch

Exactly reverses 9e108984fb, removing both the decompression change and regression test. Michael Paquier announced this rollback in #17 to restore the buildfarm while investigating SLES failures; no revert attachment was posted.

Fix corner case with PGP decompression in pgcrypto
22 Jul 2020Michael Paquiermaster14beta1REL_19_STABLE14beta1REL_18_STABLE14beta1REL_17_STABLE14beta1REL_16_STABLE14beta1REL_15_STABLE14beta1REL_14_STABLE14beta1REL_13_STABLE13beta3+5 more
LLM analysis, 100% suremodified before commitlight changesfrom patchset #100 of 1 reviewer saw the final version

Matches #10 in all three files except for removal of Assert(res != Z_STREAM_END || dec->buf_data > 0) and adjacent blank lines in decompress_read(). The commit credits both Horiguchi, who supplied the preceding fix and test in #8, and patchset sender Michael Paquier.

  • Tom Lanesaw an earlier versionLLM analysis, 95% sureRequested a regression test for #6 in #7, which was added in #8, before the implementation was reworked in #10.

Credits across 4 commits

Author
Kyotaro Horiguchi2
Michael Paquier2
Reviewer
Tom Lane1
Reported by
Frank Gagnepain2
Committer
Michael Paquier3
Tom Lane1