zstd/lib/common
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
..
bitstream.h Optimize decompression speed for gcc and clang (#1892) 2019-11-25 18:26:19 -08:00
compiler.h Optimize decompression speed for gcc and clang (#1892) 2019-11-25 18:26:19 -08:00
cpu.h Fix i386 build failure "Junk character 13" 2018-11-16 02:16:21 -06:00
debug.c grouped debug functions into debug.h 2018-06-13 15:43:09 -04:00
debug.h play around with rescale weights 2018-12-17 15:48:34 -08:00
entropy_common.c zeroise freq table with memset() 2018-06-26 17:24:41 -07:00
error_private.c Use Unused Variable in ERR_getErrorString() 2018-12-19 12:36:10 -08:00
error_private.h updated license header 2017-09-08 00:09:23 -07:00
fse_decompress.c Tweaks to create a single-file decoder 2019-08-21 17:49:17 +02:00
fse.h adding bit container size 2019-09-18 13:49:45 -07:00
huf.h [fuzz] Only set HUF_repeat_valid if loaded table has all non-zero weights (#1898) 2019-11-26 12:24:19 -08:00
mem.h Declare the ASAN Functions We Need, Don't Include the Header 2019-10-10 13:40:16 -04:00
pool.c [threading] Add debug utilities 2019-10-18 15:05:34 -07:00
pool.h changed POOL_resize() return type to int 2018-06-22 12:14:59 -07:00
threading.c [threading] Add debug utilities 2019-10-18 15:05:34 -07:00
threading.h [threading] Add debug utilities 2019-10-18 15:05:34 -07:00
xxhash.c Add support for IAR C/C++ Compiler for Arm 2019-07-29 15:25:58 +08:00
xxhash.h xxhash can be included twice in any order 2017-03-01 13:29:29 -08:00
zstd_common.c separate DDict logic into its own module 2018-10-23 17:25:49 -07:00
zstd_errors.h fixed a second memset() on NULL 2018-10-29 15:03:57 -07:00
zstd_internal.h Merge pull request #1815 from facebook/zlibwrap 2019-10-16 16:45:15 -07:00