mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-31 21:37:25 +02:00
35e142202b
A compressed stream may end with an empty packet, and PGP decompression
finished before reading this empty packet in the remaining stream. This
caused a failure in pgcrypto, handling this case as corrupted data.
This commit makes sure to consume such extra data, avoiding a failure
when decompression the entire stream. This corner case was reproducible
with a data length of 16kB, and existed since its introduction in
|
||
---|---|---|
.. | ||
3des.out | ||
blowfish.out | ||
cast5.out | ||
crypt-blowfish.out | ||
crypt-des.out | ||
crypt-md5.out | ||
crypt-xdes.out | ||
des.out | ||
hmac-md5.out | ||
hmac-sha1.out | ||
init.out | ||
md5.out | ||
pgp-armor.out | ||
pgp-compression.out | ||
pgp-decrypt.out | ||
pgp-encrypt.out | ||
pgp-info.out | ||
pgp-pubkey-decrypt.out | ||
pgp-pubkey-encrypt.out | ||
pgp-zlib-DISABLED.out | ||
rijndael.out | ||
sha1.out | ||
sha2.out |