MCPcopy Create free account
hub / github.com/catchorg/Catch2 / LLVMFuzzerTestOneInput

Function LLVMFuzzerTestOneInput

fuzzing/fuzz_textflow.cpp:40–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
41
42 Catch::TextFlow::Columns columns;
43
44 // break the input on separator
45 split((const char*)Data,Size,[&](std::string_view word) {
46 columns+=Catch::TextFlow::Column(std::string(word));
47 });
48
49 NullOStream nul;
50 nul << columns;
51
52 return 0;
53}
54

Callers

nothing calls this directly

Calls 2

splitFunction · 0.85
ColumnClass · 0.50

Tested by

no test coverage detected