Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/fuzzing/fuzz_XmlWriter.cpp
blob: f8e5a0d9a30b442bf02c3490c17eb7e0b7267f28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//License: Boost 1.0
//By Paul Dreik 2020

#include <catch2/internal/catch_xmlwriter.hpp>

#include "NullOStream.h"

extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {

    std::string buf(Data,Data+Size);
    NullOStream nul;
    Catch::XmlEncode encode(buf);
    encode.encodeTo(nul);
    return 0;
}