fuzz_TestSpecParser.cpp 373 B

12345678910111213141516
  1. //License: Boost 1.0
  2. //By Paul Dreik 2020
  3. #include <catch2/internal/catch_test_spec_parser.hpp>
  4. #include <catch2/internal/catch_tag_alias_registry.hpp>
  5. extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
  6. Catch::TagAliasRegistry tar;
  7. Catch::TestSpecParser tsp(tar);
  8. std::string buf(Data,Data+Size);
  9. tsp.parse(buf);
  10. return 0;
  11. }