]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
[fuzz] Expand the allowedExpansion 2152/head
authorNick Terrell <terrelln@fb.com>
Tue, 19 May 2020 18:42:53 +0000 (11:42 -0700)
committerNick Terrell <terrelln@fb.com>
Tue, 19 May 2020 18:42:53 +0000 (11:42 -0700)
tests/fuzz/simple_round_trip.c

index 348da03a9624b9c52b93db6254db4458d1a5f174..2f008d06a51aad54317731b660b0d5159443e1c9 100644 (file)
@@ -60,7 +60,7 @@ static size_t roundTripTest(void *result, size_t resultCapacity,
                 + 3 /* number of sequences */
                 + 1 /* symbol compression modes */;
             size_t const expectedExpansion = bytesPerBlock * (1 + (normalCSize / MAX(1, targetCBlockSize)));
-            size_t const allowedExpansion = (srcSize >> 4) + 3 * expectedExpansion + 10;
+            size_t const allowedExpansion = (srcSize >> 3) + 5 * expectedExpansion + 10;
             FUZZ_ASSERT(cSize <= normalCSize + allowedExpansion);
         }
     }