diff options
author | bimbashrestha <bshrestha.msae@gmail.com> | 2019-08-16 23:43:28 (GMT) |
---|---|---|
committer | bimbashrestha <bshrestha.msae@gmail.com> | 2019-08-16 23:43:28 (GMT) |
commit | f839e9fe8a393117c64dff58196d36b741780ab0 (patch) | |
tree | 8e631d375b6b734bd2e8f8385b5e289862a4f3b3 /ossfuzz/compress_frame_fuzzer.c | |
parent | a9ac05645644a0615b558f6ac655c4ae46c4a926 (diff) | |
download | lz4-f839e9fe8a393117c64dff58196d36b741780ab0.zip lz4-f839e9fe8a393117c64dff58196d36b741780ab0.tar.gz lz4-f839e9fe8a393117c64dff58196d36b741780ab0.tar.bz2 |
Seperating fuzz data producer api impl and header, using data producer on the easy fuzzers
Diffstat (limited to 'ossfuzz/compress_frame_fuzzer.c')
-rw-r--r-- | ossfuzz/compress_frame_fuzzer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ossfuzz/compress_frame_fuzzer.c b/ossfuzz/compress_frame_fuzzer.c index 75c609f..344917a 100644 --- a/ossfuzz/compress_frame_fuzzer.c +++ b/ossfuzz/compress_frame_fuzzer.c @@ -10,12 +10,14 @@ #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); |