]> git.ipfire.org Git - thirdparty/zstd.git/commit
context can be sized down even with constant parameters
authorYann Collet <cyan@fb.com>
Wed, 6 Jun 2018 22:04:12 +0000 (15:04 -0700)
committerYann Collet <cyan@fb.com>
Wed, 6 Jun 2018 22:04:12 +0000 (15:04 -0700)
commitf1ea383f4514d16937a30f600df1505d67f5548b
tree78151d661ba913240df41219c12ce6391f95e11e
parente5e17d009fc593c5e598cd4d7150082f73708bf7
context can be sized down even with constant parameters

when parameters are "equivalent",
the context is re-used in continue mode,
hence needed workspace size is not recalculated.
This incidentally also evades the size-down check and action.

This patch intercepts the "continue mode"
so that the size-down check and action is actually triggered.
lib/compress/zstd_compress.c
tests/fuzzer.c