diff options
Diffstat (limited to 'ossfuzz/round_trip_hc_fuzzer.c')
-rw-r--r-- | ossfuzz/round_trip_hc_fuzzer.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ossfuzz/round_trip_hc_fuzzer.c b/ossfuzz/round_trip_hc_fuzzer.c index 75ca8ec..7d03ee2 100644 --- a/ossfuzz/round_trip_hc_fuzzer.c +++ b/ossfuzz/round_trip_hc_fuzzer.c @@ -18,10 +18,9 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) FUZZ_dataProducer_t *producer = FUZZ_dataProducer_create(data, size); int const level = FUZZ_dataProducer_range32(producer, LZ4HC_CLEVEL_MIN, LZ4HC_CLEVEL_MAX); - size = FUZZ_dataProducer_remainingBytes(producer); - size_t const dstCapacity = LZ4_compressBound(size); + size_t const dstCapacity = LZ4_compressBound(size); char* const dst = (char*)malloc(dstCapacity); char* const rt = (char*)malloc(size); |