mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-24 18:55:04 +08:00
9e108984fb
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.sql | ||
blowfish.sql | ||
cast5.sql | ||
crypt-blowfish.sql | ||
crypt-des.sql | ||
crypt-md5.sql | ||
crypt-xdes.sql | ||
des.sql | ||
hmac-md5.sql | ||
hmac-sha1.sql | ||
init.sql | ||
md5.sql | ||
pgp-armor.sql | ||
pgp-compression.sql | ||
pgp-decrypt.sql | ||
pgp-encrypt.sql | ||
pgp-info.sql | ||
pgp-pubkey-decrypt.sql | ||
pgp-pubkey-encrypt.sql | ||
pgp-zlib-DISABLED.sql | ||
rijndael.sql | ||
sha1.sql | ||
sha2.sql |