MCPcopy Create free account
hub / github.com/HexHive/NASS / InternalStrnlen2

Function InternalStrnlen2

fuzz/libfuzzer/FuzzerTracePC.cpp:404–409  ·  view source on GitHub ↗

Finds min of (strlen(S1), strlen(S2)). Needed because one of these strings may actually be non-zero terminated.

Source from the content-addressed store, hash-verified

402// Finds min of (strlen(S1), strlen(S2)).
403// Needed because one of these strings may actually be non-zero terminated.
404ATTRIBUTE_NO_SANITIZE_MEMORY
405static size_t InternalStrnlen2(const char *S1, const char *S2) {
406 size_t Len = 0;
407 for (; S1[Len] && S2[Len]; Len++) {}
408 return Len;
409}
410
411void TracePC::ClearInlineCounters() {
412 IterateCounterRegions([](const Module::Region &R){

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected