Merge pull request #2152 from terrelln/simple-rt-bound

[fuzz] Expand the allowedExpansion
This commit is contained in:
Nick Terrell 2020-05-19 12:56:11 -07:00 committed by GitHub
commit 0dcd3eec43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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);
}
}