MCPcopy Create free account
hub / github.com/Project-OSRM/osrm-backend / LLVMFuzzerTestOneInput

Function LLVMFuzzerTestOneInput

fuzz/url_parser.cc:10–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8using osrm::server::api::parseURL;
9
10extern "C" int LLVMFuzzerTestOneInput(const unsigned char *data, unsigned long size)
11{
12 std::string in(reinterpret_cast<const char *>(data), size);
13
14 auto first = begin(in);
15 const auto last = end(in);
16
17 const auto param = parseURL(first, last);
18 escape(&param);
19
20 return 0;
21}

Callers

nothing calls this directly

Calls 2

escapeFunction · 0.85
parseURLFunction · 0.50

Tested by

no test coverage detected