fuzz_XmlWriter.cpp
1 2 // Copyright Catch2 Authors 3 // Distributed under the Boost Software License, Version 1.0. 4 // (See accompanying file LICENSE.txt or copy at 5 // https://www.boost.org/LICENSE_1_0.txt) 6 7 // SPDX-License-Identifier: BSL-1.0 8 //By Paul Dreik 2020 9 10 #include <catch2/internal/catch_xmlwriter.hpp> 11 12 #include "NullOStream.h" 13 14 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { 15 16 std::string buf(Data,Data+Size); 17 NullOStream nul; 18 Catch::XmlEncode encode(buf); 19 encode.encodeTo(nul); 20 return 0; 21 } 22