mirror of
https://github.com/simdjson/simdjson
synced 2026-06-08 17:27:07 +00:00
92c34f7f38
* move from deprecated interface in fuzz dump raw tape * update fuzz_dump to the non deprecated replacement * replace use of deprecated api * hopefully fix windows build
15 lines
317 B
C++
15 lines
317 B
C++
#include "simdjson.h"
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
#include <string>
|
|
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
|
|
|
|
try {
|
|
simdjson::dom::parser pj;
|
|
auto result=pj.parse(Data, Size);
|
|
UNUSED auto v=result.value();
|
|
}catch(...) {
|
|
}
|
|
return 0;
|
|
}
|