From: Nick Terrell Date: Tue, 19 May 2020 18:42:53 +0000 (-0700) Subject: [fuzz] Expand the allowedExpansion X-Git-Tag: v1.4.5^2~5^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b82bf711fc5d3daca00f0236a7c5961ed28dd46a;p=thirdparty%2Fzstd.git [fuzz] Expand the allowedExpansion --- diff --git a/tests/fuzz/simple_round_trip.c b/tests/fuzz/simple_round_trip.c index 348da03a9..2f008d06a 100644 --- a/tests/fuzz/simple_round_trip.c +++ b/tests/fuzz/simple_round_trip.c @@ -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); } }