summaryrefslogtreecommitdiffstats
path: root/programs/bench.h
diff options
context:
space:
mode:
authorW. Felix Handte <w@felixhandte.com>2019-07-18 16:41:12 (GMT)
committerW. Felix Handte <w@felixhandte.com>2019-07-18 16:48:41 (GMT)
commit369fb3900cbc73543f1bab276ca1b82abe402937 (patch)
tree0f4dbe09c6a21166a4fe2e4908c66e3fb85a13a0 /programs/bench.h
parent19b099986aeccc12bb46ad207fe8de5b36bdb7bc (diff)
downloadlz4-369fb3900cbc73543f1bab276ca1b82abe402937.zip
lz4-369fb3900cbc73543f1bab276ca1b82abe402937.tar.gz
lz4-369fb3900cbc73543f1bab276ca1b82abe402937.tar.bz2
Fix Data Corruption Bug when Streaming with an Attached Dict in HC Mode
This diff fixes an issue in which we failed to clear the `dictCtx` in HC compression. The `dictCtx` is not supposed to be used when an `extDict` is present: matches found in the `dictCtx` do not account for the presence of an `extDict` segment, and their offsets are therefore miscalculated when one is present. This can lead to data corruption. This diff clears the `dictCtx` whenever setting an `extDict`. This issue was uncovered by @terrelln's fuzzing work.
Diffstat (limited to 'programs/bench.h')
0 files changed, 0 insertions, 0 deletions