[fuzz] Fix compress bound for dictionary_round_trip

This commit is contained in:
Nick Terrell 2020-05-11 19:00:52 -07:00
parent 738f49178b
commit 301a62fe08

View File

@ -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,