|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Fuzz recursive-descent parsing and malformed-source recovery. More...
#include <algorithm>#include <cstddef>#include <cstdint>#include <cstdlib>#include <string>#include <Compiler_Parser.H>Go to the source code of this file.
Functions | |
| int | LLVMFuzzerTestOneInput (const uint8_t *data, size_t size) |
| Parse arbitrary bounded source text and validate the module span. | |
Fuzz recursive-descent parsing and malformed-source recovery.
Definition in file fuzz_compiler_parser.cc.
| int LLVMFuzzerTestOneInput | ( | const uint8_t * | data, |
| size_t | size | ||
| ) |
Parse arbitrary bounded source text and validate the module span.
| data | Fuzzer-generated options byte followed by source text. |
| size | Number of available bytes. |
Definition at line 50 of file fuzz_compiler_parser.cc.
References Aleph::Source_Manager::add_virtual_file(), Aleph::Compiler_Parser_Options::allow_top_level_statements, options, and Aleph::size().