]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Change Target Size in Fuzzer
authorW. Felix Handte <w@felixhandte.com>
Thu, 26 Aug 2021 17:46:32 +0000 (13:46 -0400)
committerW. Felix Handte <w@felixhandte.com>
Wed, 1 Sep 2021 18:15:04 +0000 (14:15 -0400)
It's a bit strange, because this is hitting the dictionary special case where
the dictionary is contiguous with the input and still runs in the single-
segment path.

We should probably change that to hit the `extDict` path instead?

tests/fuzzer.c

index 960050f967465edbe121e3182ca9d2eb419e2da2..fff963176fd07d9509e27fdb18f5d6ce72338d50 100644 (file)
@@ -1966,7 +1966,7 @@ static int basicUnitTests(U32 const seed, double compressibility)
                                                  3742, 3670, 3670, 3660, 3660,
                                                  3660, 3660, 3660, 3660, 3660,
                                                  3660, 3660, 3660 };
-            size_t const target_wdict_cSize[22+1] =  { 2830, 2890, 2890, 2820, 2940,
+            size_t const target_wdict_cSize[22+1] =  { 2830, 2896, 2890, 2820, 2940,
                                                        2950, 2950, 2925, 2900, 2891,
                                                        2910, 2910, 2910, 2770, 2760,
                                                        2750, 2750, 2750, 2750, 2750,