Better error handling when trying to compress/decompress into empty buffer.
commit8d6940814a90166e468cee810820e8fc5b74e89d
authorAlexander Færøy <ahf@torproject.org>
Thu, 28 Sep 2017 14:46:10 +0000 (28 16:46 +0200)
committerAlexander Færøy <ahf@torproject.org>
Thu, 28 Sep 2017 18:17:41 +0000 (28 20:17 +0200)
tree555feb54ab200546286311d271e31e0d027b2024
parent7f3dc8327ac1f6b4a0ec377b5ec04e279b682cab
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
changes/bug23551 [new file with mode: 0644]
src/common/compress.c