]> git.ipfire.org Git - thirdparty/zstd.git/commit
[libzstd] Fix estimate with negative levels 1458/head
authorNick Terrell <terrelln@fb.com>
Tue, 18 Dec 2018 22:24:49 +0000 (14:24 -0800)
committerNick Terrell <terrelln@fb.com>
Tue, 18 Dec 2018 22:24:49 +0000 (14:24 -0800)
commitd7def456d84ab8e5cda13389ffc69748e7b8a7f4
tree8d2af5f840261e2cb59b4ff421d4009fe69919b8
parent517d8c984ce9b30792fe5b6c8c79547d3748f34d
[libzstd] Fix estimate with negative levels

* Fix `ZSTD_estimateCCtxSize()` with negative levels.
* Fix `ZSTD_estimateCStreamSize()` with negative levels.
* Add a unit test to test for this error.
lib/compress/zstd_compress.c
tests/fuzzer.c