Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
fuzz_rle_parser.cc File Reference

libFuzzer target for the RLE snapshot reader (read_rle). More...

#include <cstddef>
#include <cstdint>
#include <string>
#include <ca-io.H>
Include dependency graph for fuzz_rle_parser.cc:

Go to the source code of this file.

Functions

int LLVMFuzzerTestOneInput (const uint8_t *data, size_t size)
 

Detailed Description

libFuzzer target for the RLE snapshot reader (read_rle).

Malformed input is expected to be rejected via Aleph error macros (exceptions); only memory-safety failures (OOB, UAF, integer overflow leading to OOB) are real bugs and are caught by the address/undefined sanitizers the fuzzer is built with.

Build (see Tests/fuzz/CMakeLists.txt): clang++ -std=c++20 -fsanitize=fuzzer,address,undefined ...

Definition in file fuzz_rle_parser.cc.

Function Documentation

◆ LLVMFuzzerTestOneInput()

int LLVMFuzzerTestOneInput ( const uint8_t *  data,
size_t  size 
)