From: Nick Terrell Date: Tue, 12 May 2020 02:00:52 +0000 (-0700) Subject: [fuzz] Fix compress bound for dictionary_round_trip X-Git-Tag: v1.4.5^2~17^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=301a62fe087ead04d4d34b1188fadcabe96d4d9f;p=thirdparty%2Fzstd.git [fuzz] Fix compress bound for dictionary_round_trip --- diff --git a/tests/fuzz/dictionary_round_trip.c b/tests/fuzz/dictionary_round_trip.c index cd38178d6..7b7771e48 100644 --- a/tests/fuzz/dictionary_round_trip.c +++ b/tests/fuzz/dictionary_round_trip.c @@ -85,7 +85,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *src, size_t size) size_t const rBufSize = size; void* rBuf = FUZZ_malloc(rBufSize); - size_t cBufSize = ZSTD_compressBound(size) * 2; + size_t cBufSize = ZSTD_compressBound(size); void *cBuf; /* Half of the time fuzz with a 1 byte smaller output size. * This will still succeed because we force the checksum to be disabled,