From b82bf711fc5d3daca00f0236a7c5961ed28dd46a Mon Sep 17 00:00:00 2001 From: Nick Terrell Date: Tue, 19 May 2020 11:42:53 -0700 Subject: [PATCH] [fuzz] Expand the allowedExpansion --- tests/fuzz/simple_round_trip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- 2.47.2