mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 06:48:05 +01:00
Apparently, zlib sometimes reports Z_BUF_ERROR on input exhaustion as well as on running out of output space. This could well fix the assert bug reported by weasel and arma.
svn:r6682
This commit is contained in:
parent
aafc309414
commit
06e09cdd47
1 changed files with 2 additions and 0 deletions
|
@ -348,6 +348,8 @@ tor_zlib_process(tor_zlib_state_t *state,
|
|||
case Z_STREAM_END:
|
||||
return TOR_ZLIB_DONE;
|
||||
case Z_BUF_ERROR:
|
||||
if (state->stream.avail_in == 0)
|
||||
return Z_OK;
|
||||
return TOR_ZLIB_BUF_FULL;
|
||||
case Z_OK:
|
||||
if (state->stream.avail_out == 0)
|
||||
|
|
Loading…
Add table
Reference in a new issue