]> git.ipfire.org Git - thirdparty/zstd.git/commit
Don't shrink window log in ZSTD_getCParams() 2451/head
authorNick Terrell <terrelln@fb.com>
Mon, 4 Jan 2021 23:51:23 +0000 (15:51 -0800)
committerNick Terrell <terrelln@fb.com>
Mon, 4 Jan 2021 23:54:09 +0000 (15:54 -0800)
commit58476bcf7fb04e1827821a7723e1033bc4cd51f0
treeb3fdefaa949e21f72c63bfa12d3a836bbd0b0dfe
parent9d31c704d569cd5bfed24d1f13c767c5e25d183d
Don't shrink window log in ZSTD_getCParams()

Treat ZSTD_getCParams() and ZSTD_adjustCParams() in the same way
we treat streaming compression. Choose parameters based on the
dictionary size + source size, and assume the source size is small
if unkown. But, don't shrink the window log down in
ZSTD_adjustCParams_internal().
lib/compress/zstd_compress.c
tests/fuzzer.c