Bimba Shrestha a3a3c62b81 [fuzz] Only set HUF_repeat_valid if loaded table has all non-zero weights (#1898)
Fixes a fuzz issue where dictionary_round_trip failed because the compressor was generating corrupt files thanks to zero weights in the table.

* Only setting loaded dict huf table to valid on non-zero

* Adding hasNoZeroWeights test to fse tables

* Forbiding nbBits != 0 when weight == 0

* Reverting the last commit

* Setting table log to 0 when weight == 0

* Small (invalid) zero weight dict test

* Small (valid) zero weight dict test

* Initializing repeatMode vars to check before zero check

* Removing FSE changes to seperate pr

* Reverting accidentally changed file

* Negating bool, using unsigned, optimization nit
2019-11-26 12:24:19 -08:00
..
2018-06-13 15:43:09 -04:00
2018-12-17 15:48:34 -08:00
2017-09-08 00:09:23 -07:00
2019-09-18 13:49:45 -07:00
2019-10-18 15:05:34 -07:00
2019-10-18 15:05:34 -07:00
2019-10-18 15:05:34 -07:00
2018-10-29 15:03:57 -07:00