2020-03-03 06:23:19 +08:00
|
|
|
#include "simdjson.h"
|
2019-10-29 02:46:57 +08:00
|
|
|
#include <cstddef>
|
|
|
|
#include <cstdint>
|
|
|
|
#include <string>
|
|
|
|
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
|
2020-04-17 09:49:10 +08:00
|
|
|
simdjson::dom::parser parser;
|
2020-10-13 21:18:54 +08:00
|
|
|
simdjson_unused simdjson::dom::element elem;
|
|
|
|
simdjson_unused auto error = parser.parse(Data, Size).get(elem);
|
2020-04-17 09:49:10 +08:00
|
|
|
return 0;
|
2019-10-29 02:46:57 +08:00
|
|
|
}
|