fuzz_XmlWriter.cpp 327 B

12345678910111213141516
  1. //License: Boost 1.0
  2. //By Paul Dreik 2020
  3. #include <catch2/internal/catch_xmlwriter.hpp>
  4. #include "NullOStream.h"
  5. extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
  6. std::string buf(Data,Data+Size);
  7. NullOStream nul;
  8. Catch::XmlEncode encode(buf);
  9. encode.encodeTo(nul);
  10. return 0;
  11. }