fast_double_parser/.clusterfuzzlite/parse_number_fuzzer.cpp
David Korczynski 06bc1ea3ed Add ClusterFuzzLite integration
Signed-off-by: David Korczynski <david@adalogics.com>
2023-12-21 03:48:47 -08:00

11 lines
283 B
C++

#include <fast_double_parser.h>
#include <string>
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
std::string fuzz_input(reinterpret_cast<const char *>(data), size);
double x;
fast_double_parser::parse_number(fuzz_input.c_str(), &x);
return 0;
}