Line | Count | Source |
1 | #include <cstdint> | |
2 | ||
3 | #include <fuzzer/FuzzedDataProvider.h> | |
4 | #include <yaml-cpp/yaml.h> | |
5 | ||
6 | 6.41k | extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { |
7 | 6.41k | auto fdp = FuzzedDataProvider(data, size); |
8 | ||
9 | 6.41k | try { |
10 | 6.41k | auto nodes = YAML::LoadAll(fdp.ConsumeRemainingBytesAsString()); |
11 | 6.41k | } catch (...) { |
12 | 3.14k | } |
13 | ||
14 | 6.41k | return 0; |
15 | 6.41k | } |
16 |