]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
[fuzz] Fix compress bound for dictionary_round_trip
authorNick Terrell <terrelln@fb.com>
Tue, 12 May 2020 02:00:52 +0000 (19:00 -0700)
committerNick Terrell <terrelln@fb.com>
Tue, 12 May 2020 02:00:52 +0000 (19:00 -0700)
tests/fuzz/dictionary_round_trip.c

index cd38178d6ae8099b9cff81fe454f793710ec7041..7b7771e48e23e19cf71bf684cefe9b58a977e62a 100644 (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,