Rizin
unix-like reverse engineering framework and cli tools
|
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "fuzz_helpers.h"
#include "fuzz_data_producer.h"
#include "lz4.h"
#include "lz4hc.h"
Go to the source code of this file.
Functions | |
int | LLVMFuzzerTestOneInput (const uint8_t *data, size_t size) |
This fuzz target attempts to compress the fuzzed data with the simple compression function with an output buffer that may be too small to ensure that the compressor never crashes.
Definition at line 17 of file compress_hc_fuzzer.c.
References compressedSize, dst, free(), FUZZ_ASSERT, FUZZ_ASSERT_MSG, FUZZ_dataProducer_create(), FUZZ_dataProducer_free(), FUZZ_dataProducer_remainingBytes(), FUZZ_dataProducer_retrieve32(), FUZZ_getRange_from_uint32(), level, LZ4_compress_HC(), LZ4_compress_HC_destSize(), LZ4_decompress_safe(), LZ4_sizeofStateHC(), LZ4HC_CLEVEL_MAX, LZ4HC_CLEVEL_MIN, and malloc().