Rizin
unix-like reverse engineering framework and cli tools
|
#include "fuzz_data_producer.h"
Go to the source code of this file.
Classes | |
struct | FUZZ_dataProducer_s |
Functions | |
FUZZ_dataProducer_t * | FUZZ_dataProducer_create (const uint8_t *data, size_t size) |
void | FUZZ_dataProducer_free (FUZZ_dataProducer_t *producer) |
uint32_t | FUZZ_dataProducer_retrieve32 (FUZZ_dataProducer_t *producer) |
uint32_t | FUZZ_getRange_from_uint32 (uint32_t seed, uint32_t min, uint32_t max) |
uint32_t | FUZZ_dataProducer_range32 (FUZZ_dataProducer_t *producer, uint32_t min, uint32_t max) |
LZ4F_frameInfo_t | FUZZ_dataProducer_frameInfo (FUZZ_dataProducer_t *producer) |
LZ4F_preferences_t | FUZZ_dataProducer_preferences (FUZZ_dataProducer_t *producer) |
size_t | FUZZ_dataProducer_remainingBytes (FUZZ_dataProducer_t *producer) |
FUZZ_dataProducer_t* FUZZ_dataProducer_create | ( | const uint8_t * | data, |
size_t | size | ||
) |
Definition at line 8 of file fuzz_data_producer.c.
References FUZZ_dataProducer_s::data, FUZZ_ASSERT, malloc(), NULL, and FUZZ_dataProducer_s::size.
Referenced by LLVMFuzzerTestOneInput().
LZ4F_frameInfo_t FUZZ_dataProducer_frameInfo | ( | FUZZ_dataProducer_t * | producer | ) |
Definition at line 50 of file fuzz_data_producer.c.
References FUZZ_dataProducer_range32(), info(), LZ4F_blockChecksumEnabled, LZ4F_blockIndependent, LZ4F_blockLinked, LZ4F_contentChecksumEnabled, LZ4F_default, LZ4F_INIT_FRAMEINFO, LZ4F_max4MB, LZ4F_max64KB, LZ4F_noBlockChecksum, and LZ4F_noContentChecksum.
Referenced by FUZZ_dataProducer_preferences().
void FUZZ_dataProducer_free | ( | FUZZ_dataProducer_t * | producer | ) |
Definition at line 18 of file fuzz_data_producer.c.
References free().
Referenced by LLVMFuzzerTestOneInput().
LZ4F_preferences_t FUZZ_dataProducer_preferences | ( | FUZZ_dataProducer_t * | producer | ) |
Definition at line 65 of file fuzz_data_producer.c.
References LZ4F_preferences_t::autoFlush, LZ4F_preferences_t::compressionLevel, LZ4F_preferences_t::favorDecSpeed, LZ4F_preferences_t::frameInfo, FUZZ_dataProducer_frameInfo(), FUZZ_dataProducer_range32(), LZ4F_INIT_PREFERENCES, and LZ4HC_CLEVEL_MAX.
Referenced by LLVMFuzzerTestOneInput().
uint32_t FUZZ_dataProducer_range32 | ( | FUZZ_dataProducer_t * | producer, |
uint32_t | min, | ||
uint32_t | max | ||
) |
Definition at line 43 of file fuzz_data_producer.c.
References FUZZ_dataProducer_retrieve32(), FUZZ_getRange_from_uint32(), max, and min.
Referenced by FUZZ_dataProducer_frameInfo(), FUZZ_dataProducer_preferences(), and LLVMFuzzerTestOneInput().
size_t FUZZ_dataProducer_remainingBytes | ( | FUZZ_dataProducer_t * | producer | ) |
Definition at line 75 of file fuzz_data_producer.c.
References FUZZ_dataProducer_s::size.
Referenced by LLVMFuzzerTestOneInput().
uint32_t FUZZ_dataProducer_retrieve32 | ( | FUZZ_dataProducer_t * | producer | ) |
Definition at line 20 of file fuzz_data_producer.c.
References FUZZ_dataProducer_s::data, and FUZZ_dataProducer_s::size.
Referenced by FUZZ_dataProducer_range32(), and LLVMFuzzerTestOneInput().
Definition at line 34 of file fuzz_data_producer.c.
References max, min, and capstone::range.
Referenced by FUZZ_dataProducer_range32(), and LLVMFuzzerTestOneInput().