Re: BUG #16476: pgp_sym_encrypt_bytea with compress-level=6 : Wrong key or corrupt data
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Kyotaro Horiguchi <horikyota.ntt@gmail.com>, jeff.janes@gmail.com, frank.gagnepain@intm.fr, pgsql-bugs@lists.postgresql.org, Mark Wong <mark@2ndquadrant.com>
Date: 2020-07-22T23:16:39Z
Lists: pgsql-bugs
On Wed, Jul 22, 2020 at 06:38:50PM -0400, Tom Lane wrote: > is setting next_in to garbage. However, if we've already set > eof to 1, which we have, then we won't call inflate() again > so the garbage pointer should not matter. (Besides which, > zlib really shouldn't dereference that pointer if avail_in is 0.) Yeah, I looked at zlib quite a bit to reach this same conclusion when studying this problem. > I'm still baffled as to why only the SLES s390x animals are failing, > but it's beginning to seem like it might be due to them using a > different zlib version. My main suspicion is that they are using hardware-specific calls in a proprietary fork of libz. They have a lot of changes in their release notes that are hardware-specific: https://www.suse.com/releasenotes/x86_64/SUSE-SLES/15-SP1/ I could not find the RPMs though, and perhaps it is based on zlib-ng or similar but that's hard to say. > Horiguchi-san's v3 patch at > <20200612.145412.475791851624925277.horikyota.ntt@gmail.com> > doesn't have either of these problems, so it seems much superior > to me than what you actually did. I don't have a lot of hope that > changing to that one would fix the buildfarm problem --- but maybe it > would, if the machine-dependent behavior is somehow hiding in the > repeat-call-after-EOF code path. Perhaps. It could be possible to give it a try on HEAD, though I doubt that it would solve the problem :/ For now, more investigation is needed for this SLES behavior though. So, to put the buildfarm back to green, I am reverting the patch. -- Michael
Commits
-
Fix corner case with 16kB-long decompression in pgcrypto, take 2
- aaa132a65deb 9.5.23 landed
- 8a60f541f3e4 9.6.19 landed
- 9729f99798af 10.14 landed
- 202fc4ca531e 11.9 landed
- 5bd087eb5d77 12.4 landed
- 0caf1fc6e86a 13.0 landed
- a3ab7a707d9e 14.0 landed
-
Fix ancient violation of zlib's API spec.
- d0519e9fea96 9.5.23 landed
- ccf964a80100 9.6.19 landed
- d8ec3b1263d2 10.14 landed
- 475c69c97662 11.9 landed
- 3d4a778152ec 12.4 landed
- b9b610577d7f 14.0 landed
- 7dab4569d193 13.0 landed
-
Revert "Fix corner case with PGP decompression in pgcrypto"
- 43e21fd8f6e8 9.5.23 landed
- 11c320dcebc0 9.6.19 landed
- 9a3c895084c6 10.14 landed
- 6ae2d925b131 11.9 landed
- e30a63f258f5 12.4 landed
- 9f5162ef43c5 13.0 landed
- 38f60f174e32 14.0 landed
-
Fix corner case with PGP decompression in pgcrypto
- dbf17ca1bfab 9.5.23 landed
- e0cb8282d614 9.6.19 landed
- 5bfd0936b460 10.14 landed
- eceb415c6ff0 11.9 landed
- bba2e66aec4c 12.4 landed
- 35e142202b14 13.0 landed
- 9e108984fb35 14.0 landed