mirror of
https://github.com/simdjson/simdjson
synced 2026-06-08 17:27:07 +00:00
9442c9e1f4
* add basic fuzzing using libFuzzer * let cmake respect cflags, otherwise the fuzzer flags go unnoticed also, integrates badly with oss-fuzz * add new fuzzer for minification, simplify the old one * add fuzzer for the dump example * clang format
11 lines
237 B
C++
11 lines
237 B
C++
#include "simdjson/jsonparser.h"
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
#include <string>
|
|
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
|
|
|
|
auto ignored = simdjson::build_parsed_json(Data, Size);
|
|
|
|
return 0;
|
|
}
|