pgsql: Fix ancient violation of zlib's API spec.

2020-07-23 Thread Tom Lane
Fix ancient violation of zlib's API spec. contrib/pgcrypto mishandled the case where deflate() does not consume all of the offered input on the first try. It reset the next_in pointer to the start of the input instead of leaving it alone, causing the wrong data to be fed to the next deflate() cal

pgsql: Fix ancient violation of zlib's API spec.

2020-07-23 Thread Tom Lane
Fix ancient violation of zlib's API spec. contrib/pgcrypto mishandled the case where deflate() does not consume all of the offered input on the first try. It reset the next_in pointer to the start of the input instead of leaving it alone, causing the wrong data to be fed to the next deflate() cal

pgsql: Fix ancient violation of zlib's API spec.

2020-07-23 Thread Tom Lane
Fix ancient violation of zlib's API spec. contrib/pgcrypto mishandled the case where deflate() does not consume all of the offered input on the first try. It reset the next_in pointer to the start of the input instead of leaving it alone, causing the wrong data to be fed to the next deflate() cal

pgsql: Fix ancient violation of zlib's API spec.

2020-07-23 Thread Tom Lane
Fix ancient violation of zlib's API spec. contrib/pgcrypto mishandled the case where deflate() does not consume all of the offered input on the first try. It reset the next_in pointer to the start of the input instead of leaving it alone, causing the wrong data to be fed to the next deflate() cal

pgsql: Fix ancient violation of zlib's API spec.

2020-07-23 Thread Tom Lane
Fix ancient violation of zlib's API spec. contrib/pgcrypto mishandled the case where deflate() does not consume all of the offered input on the first try. It reset the next_in pointer to the start of the input instead of leaving it alone, causing the wrong data to be fed to the next deflate() cal

pgsql: Fix ancient violation of zlib's API spec.

2020-07-23 Thread Tom Lane
Fix ancient violation of zlib's API spec. contrib/pgcrypto mishandled the case where deflate() does not consume all of the offered input on the first try. It reset the next_in pointer to the start of the input instead of leaving it alone, causing the wrong data to be fed to the next deflate() cal

pgsql: Fix ancient violation of zlib's API spec.

2020-07-23 Thread Tom Lane
Fix ancient violation of zlib's API spec. contrib/pgcrypto mishandled the case where deflate() does not consume all of the offered input on the first try. It reset the next_in pointer to the start of the input instead of leaving it alone, causing the wrong data to be fed to the next deflate() cal