]> git.ipfire.org Git - thirdparty/zstd.git/commit
No longer reject dictionaries with literals maxSymbolValue < 255
authorNick Terrell <terrelln@meta.com>
Mon, 21 Aug 2023 18:33:29 +0000 (11:33 -0700)
committerNick Terrell <nickrterrell@gmail.com>
Tue, 22 Aug 2023 17:22:35 +0000 (13:22 -0400)
commitbd02c9be6e3708c6dd53f4df1f4dc13d29441e89
treea1a634100221aef070b10eca88cb8ffc847abb15
parent9662fe16834f62e2ae837068e853d088821243c1
No longer reject dictionaries with literals maxSymbolValue < 255

We already have logic in our Huffman encoder to validate Huffman tables with missing symbols.
We use this for higher compression levels to re-use the previous blocks statistics, or when the dictionaries table has zero-weighted symbols.
This check was leftover as an oversight from before we added validation for Huffman tables.

I validated that the `dictionary_loader` fuzzer has coverage of every line in the `ZSTD_loadCEntropy()` function to validate that it is correctly testing this function.
lib/compress/zstd_compress.c