Coverage Report

Created: 2025-07-18 06:29

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