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

Function InternalStrnlen

fuzz/libfuzzer/FuzzerTracePC.cpp:395–400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

393}
394
395ATTRIBUTE_NO_SANITIZE_MEMORY
396static size_t InternalStrnlen(const char *S, size_t MaxLen) {
397 size_t Len = 0;
398 for (; Len < MaxLen && S[Len]; Len++) {}
399 return Len;
400}
401
402// Finds min of (strlen(S1), strlen(S2)).
403// Needed because one of these strings may actually be non-zero terminated.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected