mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 20:33:31 +01:00
2ae51ed5e2
In zstd 1.3.0, once you have called ZSTD_endStream and been told that your putput buffer is full, it really doesn't want you to call ZSTD_compressStream again. ZSTD 1.2.0 didn't seem to mind about this. This patch fixes the issue by making sure never to call ZSTD_endStream if there's any more data on the input buffer to process, by flushing even when we're about to call "endStream", and by never calling "compress" or "flush" after "endStream".
7 lines
281 B
Plaintext
7 lines
281 B
Plaintext
o Minor bugfixes (compatibility, zstd):
|
|
- Write zstd epilogues correctly when the epilogue requires reallocation
|
|
of the output buffer, even with zstd 1.3.0. (Previously,
|
|
we worked on 1.2.0 and failed with 1.3.0). Fixes bug 22927; bugfix on
|
|
0.3.1.1-alpha.
|
|
|