summaryrefslogtreecommitdiffstats
path: root/ossfuzz/compress_frame_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_frame_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_frame_fuzzer.c')
-rw-r--r--ossfuzz/compress_frame_fuzzer.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/ossfuzz/compress_frame_fuzzer.c b/ossfuzz/compress_frame_fuzzer.c
index 344917a..75c609f 100644
--- a/ossfuzz/compress_frame_fuzzer.c
+++ b/ossfuzz/compress_frame_fuzzer.c
@@ -10,14 +10,12 @@
#include <string.h>
#include "fuzz_helpers.h"
-#include "fuzz_data_producer.h"
#include "lz4.h"
#include "lz4frame.h"
#include "lz4_helpers.h"
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
{
- FUZZ_dataProducer_t *producer = FUZZ_dataProducer_create(data, size);
uint32_t seed = FUZZ_seed(&data, &size);
LZ4F_preferences_t const prefs = FUZZ_randomPreferences(&seed);
size_t const compressBound = LZ4F_compressFrameBound(size, &prefs);