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 "lz4.h"
#include "lz4frame.h"
#include "lz4_helpers.h"
#include "fuzz_data_producer.h"
Go to the source code of this file.
Functions | |
int | LLVMFuzzerTestOneInput (const uint8_t *data, size_t size) |
This fuzz target performs a lz4 round-trip test (compress & decompress), compares the result with the original, and calls abort() on corruption.
Definition at line 17 of file round_trip_frame_fuzzer.c.
References dst, free(), FUZZ_ASSERT, FUZZ_ASSERT_MSG, FUZZ_dataProducer_create(), FUZZ_dataProducer_free(), FUZZ_dataProducer_preferences(), FUZZ_dataProducer_remainingBytes(), FUZZ_decompressFrame(), LZ4_compressBound(), LZ4F_compressFrame(), LZ4F_compressFrameBound(), LZ4F_isError(), and malloc().