]> git.ipfire.org Git - thirdparty/zstd.git/commit
Fix Bug: Only Use DDSS Insertion on CDict MatchStates 2276/head
authorW. Felix Handte <w@felixhandte.com>
Fri, 4 Sep 2020 16:16:35 +0000 (12:16 -0400)
committerW. Felix Handte <w@felixhandte.com>
Thu, 10 Sep 2020 22:51:52 +0000 (18:51 -0400)
commit07793547e649e75452cbb426fb3df1c9b6e0235e
treeb6573cd4959dac8ca2d68b4db9761aa4eee529b7
parentd214d8c859051ea5d760006bc3e4e239359d8655
Fix Bug: Only Use DDSS Insertion on CDict MatchStates

Previously, if DDSS was enabled on a CCtx and a dictionary was inserted into
the CCtx, the CCtx MatchState would be filled as a DDSS struct, causing
segfaults etc. This changes the check to use whether the MatchState is marked
as using the DDSS (which is only ever set for CDict MatchStates), rather than
looking at the CCtxParams.
lib/compress/zstd_compress.c