diff options
author | Alexander Færøy <ahf@torproject.org> | 2017-09-28 16:46:10 +0200 |
---|---|---|
committer | Alexander Færøy <ahf@torproject.org> | 2017-09-28 18:58:15 +0200 |
commit | 44dc4b73ec89a4bc442f602f58ad84f5fec5f380 (patch) | |
tree | 07a937b17f3a450ecf8c8a51bbaf3adb7205a5e5 /src/test/test_util.c | |
parent | c3b7f9d762a8c0245d7df952840412e890245c23 (diff) | |
download | tor-44dc4b73ec89a4bc442f602f58ad84f5fec5f380.tar.gz tor-44dc4b73ec89a4bc442f602f58ad84f5fec5f380.zip |
Better error handling when trying to compress/decompress into empty buffer.
This patch ensures that we return TOR_COMPRESS_BUFFER_FULL in case we
have a input bytes left to process, but are out of output buffer or in
case we need to finish where the compression implementation might need
to write an epilogue.
See: https://bugs.torproject.org/23551
Diffstat (limited to 'src/test/test_util.c')
0 files changed, 0 insertions, 0 deletions