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;
|
|
|
|
UNUSED simdjson::error_code error;
|
|
|
|
UNUSED simdjson::dom::element elem;
|
|
|
|
parser.parse(Data, Size).tie(elem, error);
|
|
|
|
return 0;
|
2019-10-29 02:46:57 +08:00
|
|
|
}
|