diff options
author | bimbashrestha <bshrestha.msae@gmail.com> | 2019-08-17 00:14:47 (GMT) |
---|---|---|
committer | bimbashrestha <bshrestha.msae@gmail.com> | 2019-08-17 00:14:47 (GMT) |
commit | dc17d39c2fb962b591c73cf1467d89cf53b89156 (patch) | |
tree | d282c937e3a6e4511e24518f7bcaf47c248c63dd /ossfuzz/compress_fuzzer.c | |
parent | f839e9fe8a393117c64dff58196d36b741780ab0 (diff) | |
download | lz4-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_fuzzer.c')
-rw-r--r-- | ossfuzz/compress_fuzzer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ossfuzz/compress_fuzzer.c b/ossfuzz/compress_fuzzer.c index 42efbd3..9d72e72 100644 --- a/ossfuzz/compress_fuzzer.c +++ b/ossfuzz/compress_fuzzer.c @@ -22,7 +22,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) char* const rt = (char*)malloc(size); /* Restrict to remaining data from producer */ - size = producer->size; + size = FUZZ_dataProducer_remainingBytes(producer); FUZZ_ASSERT(dst); FUZZ_ASSERT(rt); |