Files
simdjson-simdjson/fuzz/fuzz_dump_raw_tape.cpp
T
Daniel Lemire 6d7c77ddc1 Let us try to check with the exceptions disabled. (#707)
* Tweaking code so that we can run all tests with exceptions off.
* Removing SIMDJSON_DISABLE_EXCEPTIONS
2020-04-15 16:45:36 -04:00

22 lines
459 B
C++

#include "simdjson.h"
#include <cstddef>
#include <cstdint>
#include <iostream>
#include <string>
#include "NullBuffer.h"
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
#if SIMDJSON_EXCEPTIONS
try {
simdjson::dom::parser pj;
auto elem=pj.parse(Data, Size);
auto v=elem.value();
NulOStream os;
UNUSED auto dumpstatus=v.dump_raw_tape(os);
} catch (...) {
}
#endif
return 0;
}