summaryrefslogtreecommitdiffstats
path: root/ossfuzz/compress_hc_fuzzer.c
diff options
context:
space:
mode:
authorbimbashrestha <bshrestha.msae@gmail.com>2019-08-17 00:14:47 (GMT)
committerbimbashrestha <bshrestha.msae@gmail.com>2019-08-17 00:14:47 (GMT)
commitdc17d39c2fb962b591c73cf1467d89cf53b89156 (patch)
treed282c937e3a6e4511e24518f7bcaf47c248c63dd /ossfuzz/compress_hc_fuzzer.c
parentf839e9fe8a393117c64dff58196d36b741780ab0 (diff)
downloadlz4-dc17d39c2fb962b591c73cf1467d89cf53b89156.zip
lz4-dc17d39c2fb962b591c73cf1467d89cf53b89156.tar.gz
lz4-dc17d39c2fb962b591c73cf1467d89cf53b89156.tar.bz2
Adding comments, fixing nit, and hiding the struct in data producer api
Diffstat (limited to 'ossfuzz/compress_hc_fuzzer.c')
-rw-r--r--ossfuzz/compress_hc_fuzzer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ossfuzz/compress_hc_fuzzer.c b/ossfuzz/compress_hc_fuzzer.c
index f06f6dd..5f22104 100644
--- a/ossfuzz/compress_hc_fuzzer.c
+++ b/ossfuzz/compress_hc_fuzzer.c
@@ -25,7 +25,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
producer, LZ4HC_CLEVEL_MIN, LZ4HC_CLEVEL_MAX);
/* Restrict to remaining data from producer */
- size = producer->size;
+ size = FUZZ_dataProducer_remainingBytes(producer);
FUZZ_ASSERT(dst);
FUZZ_ASSERT(rt);