]> git.ipfire.org Git - thirdparty/zstd.git/commit
Fix parameter adjustment with dictionary 1113/head
authorNick Terrell <terrelln@fb.com>
Wed, 25 Apr 2018 23:32:29 +0000 (16:32 -0700)
committerNick Terrell <terrelln@fb.com>
Wed, 25 Apr 2018 23:32:29 +0000 (16:32 -0700)
commitca77822ddfa51c3618ab006a133752cdc13dfd7a
treebfea55115c8fa69dc2cf99fafd5a7231d7d638aa
parent12f60b8c9896b5439ef530a82d88c0fe2dfda569
Fix parameter adjustment with dictionary

The new advanced API basically set `requestedParams = appliedParams` when
using a dictionary. This halted all parameter adjustment, which can hurt
compression ratio if, for example, the window log is small for the first
call, but the rest of the files are large.

This patch fixes the bug, and checks that the `requestedParams` don't change
in the new advanced API when using a dictionary, and generally in the fuzzer.
lib/compress/zstd_compress.c
tests/zstreamtest.c