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:38:46 +0000 (16:38 +0200)
commit86ed78676c660b553696cc10c682962522dfeb6c
tree2a355bba9cd13ee2b59424cd7c46d9cf57f6be27
parenta44e1b2f20e4ac5e2ac11b63e1ae935981ea9428
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)

(cherry picked from commit 6beb8b39ba8e4cb005c1fcd2586ba19e17f04b95)
crypto/comp/c_zlib.c