From 301a62fe087ead04d4d34b1188fadcabe96d4d9f Mon Sep 17 00:00:00 2001 From: Nick Terrell Date: Mon, 11 May 2020 19:00:52 -0700 Subject: [PATCH] [fuzz] Fix compress bound for dictionary_round_trip --- tests/fuzz/dictionary_round_trip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,