BIO_f_zlib: Properly handle BIO_CTRL_PENDING and BIO_CTRL_WPENDING calls.
authorTomas Mraz <tmraz@fedoraproject.org>
Thu, 12 Sep 2019 10:27:36 +0000 (12:27 +0200)
committerTomas Mraz <tmraz@fedoraproject.org>
Thu, 12 Sep 2019 14:37:46 +0000 (16:37 +0200)
commit6beb8b39ba8e4cb005c1fcd2586ba19e17f04b95
tree48834e4e118c500f1c3f5e5cb2451fce0f519776
parent799614faa3f921ff6ea49e700cbe8a9fb4febf4c
BIO_f_zlib: Properly handle BIO_CTRL_PENDING and BIO_CTRL_WPENDING calls.

There can be data to write in output buffer and data to read that were
not yet read in the input stream.

Fixes #9866

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9877)
crypto/comp/c_zlib.c