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 "lz4frame.h"
#include "lz4_helpers.h"
Go to the source code of this file.
Macros | |
#define | LZ4F_STATIC_LINKING_ONLY |
Functions | |
static void | decompress (LZ4F_dctx *dctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize, const void *dict, size_t dictSize, const LZ4F_decompressOptions_t *opts) |
int | LLVMFuzzerTestOneInput (const uint8_t *data, size_t size) |
#define LZ4F_STATIC_LINKING_ONLY |
This fuzz target attempts to decompress the fuzzed data with the simple decompression function to ensure the decompressor never crashes.
Definition at line 14 of file decompress_frame_fuzzer.c.
|
static |
Definition at line 18 of file decompress_frame_fuzzer.c.
References dst, LZ4F_decompress(), LZ4F_decompress_usingDict(), LZ4F_resetDecompressionContext(), src, and srcSize.
Referenced by LLVMFuzzerTestOneInput().
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 31 of file decompress_frame_fuzzer.c.
References decompress(), dst, free(), FUZZ_ASSERT, FUZZ_dataProducer_create(), FUZZ_dataProducer_free(), FUZZ_dataProducer_remainingBytes(), FUZZ_dataProducer_retrieve32(), FUZZ_getRange_from_uint32(), LZ4F_createDecompressionContext(), LZ4F_freeDecompressionContext(), LZ4F_VERSION, malloc(), memset(), NULL, and LZ4F_decompressOptions_t::stableDst.