Fix 2 bugs in dictionary loading

* Silently skip dictionaries less than 8 bytes, unless using `ZSTD_dct_fullDict`.
  This changes the compressor, which silently skips dictionaries <= 8 bytes.
* Allow repcodes that are equal to the dictionary content size, since it is in bounds.
This commit is contained in:
Nick Terrell
2019-11-01 16:52:07 -07:00
parent 75e7c0d107
commit 60205fec02
3 changed files with 11 additions and 8 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ FUZZ_TARGETS := \
dictionary_decompress \
zstd_frame_info \
simple_compress \
dict_loader
dictionary_loader
all: $(FUZZ_TARGETS)