Home
last modified time | relevance | path

Searched refs:copy_length (Results 1 – 3 of 3) sorted by relevance

/llvm-project-15.0.7/compiler-rt/lib/asan/
H A Dasan_interceptors.cpp410 uptr copy_length = Min(size, from_length + 1); in INTERCEPTOR() local
411 ASAN_READ_RANGE(ctx, from, copy_length); in INTERCEPTOR()
416 CHECK_RANGES_OVERLAP("strncat", to, to_length + copy_length + 1, in INTERCEPTOR()
417 from, copy_length); in INTERCEPTOR()
/llvm-project-15.0.7/compiler-rt/lib/memprof/
H A Dmemprof_interceptors.cpp216 uptr copy_length = Min(size, from_length + 1); in INTERCEPTOR() local
217 MEMPROF_READ_RANGE(from, copy_length); in INTERCEPTOR()
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common_interceptors.inc383 uptr copy_length = internal_strnlen(s, size); \
384 char *new_mem = (char *)WRAP(malloc)(copy_length + 1); \
386 COMMON_INTERCEPTOR_READ_STRING(ctx, s, Min(size, copy_length + 1)); \
389 COMMON_INTERCEPTOR_COPY_STRING(ctx, new_mem, s, copy_length); \
390 internal_memcpy(new_mem, s, copy_length); \
391 new_mem[copy_length] = '\0'; \