mirror of
https://github.com/simdjson/simdjson
synced 2026-06-08 17:27:07 +00:00
4da06830f1
after looking at the coverage report available at https://storage.googleapis.com/oss-fuzz-coverage/simdjson/reports/20191222/linux/src/simdjson/report.html
19 lines
367 B
C++
19 lines
367 B
C++
#include "simdjson/jsonparser.h"
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
#include <iostream>
|
|
#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.dump_raw_tape(os);
|
|
} catch (...) {
|
|
}
|
|
return 0;
|
|
}
|