]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
adapted fuzzer test to new blockSizeMax rule for ZSTD_compressBlock()
authorYann Collet <yann.collet.73@gmail.com>
Fri, 15 Jul 2016 10:20:26 +0000 (12:20 +0200)
committerYann Collet <yann.collet.73@gmail.com>
Fri, 15 Jul 2016 10:20:26 +0000 (12:20 +0200)
programs/fuzzer.c

index b95e930d0449552fc290c737300c340b0cae91af..77a7118691714f7de0d37c4e7b92e70f9b6980e5 100644 (file)
@@ -321,8 +321,8 @@ static int basicUnitTests(U32 seed, double compressibility)
     /* block API tests */
     {   ZSTD_CCtx* const cctx = ZSTD_createCCtx();
         ZSTD_DCtx* const dctx = ZSTD_createDCtx();
-        static const size_t blockSize = 100 KB;
-        static const size_t dictSize = 16 KB;
+        static const size_t dictSize = 65 KB;
+        static const size_t blockSize = 100 KB;   /* won't cause pb with small dict size */
         size_t cSize2;
 
         /* basic block compression */