]> git.ipfire.org Git - thirdparty/zstd.git/commit
Fix broken assertion 1068/head
authorNick Terrell <terrelln@fb.com>
Wed, 21 Mar 2018 23:20:30 +0000 (16:20 -0700)
committerNick Terrell <terrelln@fb.com>
Wed, 21 Mar 2018 23:20:30 +0000 (16:20 -0700)
commitad344033df0781c114e703d558a6e3dbac747fe5
treeba079a2b7922c53d26c5316ec1bfa2823a335422
parent1be8660eca9045db4498702784dae6032ea9f943
Fix broken assertion

The `avgJobSize` must not be lower than 256 KB for single-pass mode.
In `zstd.h` we say the minimum value for `ZSTD_p_jobSize` is 1 MB,
so ensure that we always pick a size >= 1 MB.

Found by libFuzzer fuzzer tests with large input limits.
lib/compress/zstdmt_compress.c