pgsql: Fix corner case with PGP decompression in pgcrypto

2020-07-21 Thread Michael Paquier
Fix corner case with PGP decompression in pgcrypto 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

pgsql: Fix corner case with PGP decompression in pgcrypto

2020-07-21 Thread Michael Paquier
Fix corner case with PGP decompression in pgcrypto 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

pgsql: Fix corner case with PGP decompression in pgcrypto

2020-07-21 Thread Michael Paquier
Fix corner case with PGP decompression in pgcrypto 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

pgsql: Fix corner case with PGP decompression in pgcrypto

2020-07-21 Thread Michael Paquier
Fix corner case with PGP decompression in pgcrypto 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

pgsql: Fix corner case with PGP decompression in pgcrypto

2020-07-21 Thread Michael Paquier
Fix corner case with PGP decompression in pgcrypto 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

pgsql: Fix corner case with PGP decompression in pgcrypto

2020-07-21 Thread Michael Paquier
Fix corner case with PGP decompression in pgcrypto 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

pgsql: Fix corner case with PGP decompression in pgcrypto

2020-07-21 Thread Michael Paquier
Fix corner case with PGP decompression in pgcrypto 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