1#include <cstddef>
2#include <cstdint>
3
4#include <fuzzer/FuzzedDataProvider.h>
5
6#include "gwp_asan/optional/options_parser.h"
7
8extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
9 FuzzedDataProvider Fdp(Data, Size);
10 gwp_asan::options::initOptions(Fdp.ConsumeRemainingBytesAsString().c_str());
11 return 0;
12}
13

source code of compiler-rt/tools/gwp_asan/options_parser_fuzzer.cpp