]> git.ipfire.org Git - thirdparty/zstd.git/commit
[libzstd] Fix ZSTD_decompressDCtx() with a dictionary
authorNick Terrell <terrelln@fb.com>
Wed, 10 Apr 2019 00:59:27 +0000 (17:59 -0700)
committerNick Terrell <terrelln@fb.com>
Wed, 10 Apr 2019 00:59:27 +0000 (17:59 -0700)
commit824aaa695f811d081fb29ee0fb198e6cb0efdcfd
treebb6a9a7083d8268351bd0071dc79b6f5a1f2004f
parentc5d70b7dbb0a74272a5541d9e6ab523b3df0b31b
[libzstd] Fix ZSTD_decompressDCtx() with a dictionary

* `ZSTD_decompressDCtx()` did not use the dictionary loaded by
  `ZSTD_DCtx_loadDictionary()`.
* Add a unit test.
* A stacked diff uses `ZSTD_decompressDCtx()` in the
  `dictionary_round_trip` and `dictionary_decompress` fuzzers.
lib/decompress/zstd_decompress.c
tests/fuzzer.c