MCPcopy Create free account
hub / github.com/F-Stack/f-stack / kcsan_strlen

Function kcsan_strlen

freebsd/kern/subr_csan.c:337–351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335}
336
337size_t
338kcsan_strlen(const char *str)
339{
340 const char *s;
341
342 s = str;
343 while (1) {
344 kcsan_access((uintptr_t)s, 1, false, false, __RET_ADDR);
345 if (*s == '\0')
346 break;
347 s++;
348 }
349
350 return (s - str);
351}
352
353#undef copyin
354#undef copyin_nofault

Callers

nothing calls this directly

Calls 1

kcsan_accessFunction · 0.85

Tested by

no test coverage detected