Files
simdjson-simdjson/fuzz/fuzz_print_json.cpp
T
John Keiser 99667f7c55 Create top level simdjson.h (#515)
- Allows everyone to #include the same way, singleheader or not.
2020-03-04 10:12:27 -08:00

20 lines
353 B
C++

#include "simdjson.h"
#include <cstddef>
#include <cstdint>
#include <string>
#include "NullBuffer.h"
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
try {
auto pj = simdjson::build_parsed_json(Data, Size);
NulOStream os;
bool ignored=pj.print_json(os);
(void)ignored;
} catch (...) {
}
return 0;
}