/freebsd/contrib/llvm-project/compiler-rt/lib/nsan/ |
H A D | nsan_interceptors.cpp | 87 const auto Len = internal_strlen(s); in INTERCEPTOR() 107 __nsan_set_value_unknown(reinterpret_cast<u8 *>(str), internal_strlen(str)); in INTERCEPTOR() 125 nsanCopyZeroTerminated(res, S, internal_strlen(S)); in INTERCEPTOR() 141 nsanCopyZeroTerminated(res, S, min(internal_strlen(S), size)); in INTERCEPTOR() 148 nsanCopyZeroTerminated(dst, src, internal_strlen(src)); in INTERCEPTOR() 160 nsanCopyZeroTerminated(dst, src, min(size, internal_strlen(src))); in INTERCEPTOR() 165 const auto DstLenBeforeCat = internal_strlen(dst); in INTERCEPTOR() 167 nsanCopyZeroTerminated(dst + DstLenBeforeCat, src, internal_strlen(src)); in INTERCEPTOR() 179 const auto DstLen = internal_strlen(dst); in INTERCEPTOR() 181 nsanCopyZeroTerminated(dst + DstLen, src, min(size, internal_strlen(src))); in INTERCEPTOR() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_file.cpp | 34 report_file.Write(buffer, internal_strlen(buffer)); in RawWrite() 69 WriteToFile(kStderrFd, ErrorMsgPrefix, internal_strlen(ErrorMsgPrefix)); in ReopenIfNecessary() 70 WriteToFile(kStderrFd, full_path, internal_strlen(full_path)); in ReopenIfNecessary() 73 WriteToFile(kStderrFd, errmsg, internal_strlen(errmsg)); in ReopenIfNecessary() 89 WriteToFile(kStderrFd, ErrorMsgPrefix, internal_strlen(ErrorMsgPrefix)); in RecursiveCreateParentDirs() 90 WriteToFile(kStderrFd, path, internal_strlen(path)); in RecursiveCreateParentDirs() 92 WriteToFile(kStderrFd, ErrorMsgSuffix, internal_strlen(ErrorMsgSuffix)); in RecursiveCreateParentDirs() 101 uptr len = internal_strlen(path); in SetReportPath() 214 uptr name_len = internal_strlen(name); in FindPathToBinary()
|
H A D | sanitizer_syscalls_netbsd.inc | 134 PRE_READ(path, __sanitizer::internal_strlen(path) + 1); 142 POST_READ(path, __sanitizer::internal_strlen(path) + 1); 165 PRE_READ(path, __sanitizer::internal_strlen(path) + 1); 168 PRE_READ(path, __sanitizer::internal_strlen(link) + 1); 176 POST_READ(path, __sanitizer::internal_strlen(path) + 1); 179 POST_READ(path, __sanitizer::internal_strlen(link) + 1); 186 PRE_READ(path, __sanitizer::internal_strlen(path) + 1); 193 POST_READ(path, __sanitizer::internal_strlen(path) + 1); 201 PRE_READ(path, __sanitizer::internal_strlen(path) + 1); 208 POST_READ(path, __sanitizer::internal_strlen(path) + 1); [all …]
|
H A D | sanitizer_common_syscalls.inc | 421 PRE_READ(name, __sanitizer::internal_strlen((const char *)name) + 1); 741 PRE_READ(uargs, __sanitizer::internal_strlen((const char *)uargs) + 1); 749 __sanitizer::internal_strlen((const char *)name_user) + 1); 863 __sanitizer::internal_strlen((const char *)dev_name) + 1); 866 __sanitizer::internal_strlen((const char *)dir_name) + 1); 868 POST_WRITE(type, __sanitizer::internal_strlen((const char *)type) + 1); 877 POST_WRITE(name, __sanitizer::internal_strlen((const char *)name) + 1); 886 POST_WRITE(name, __sanitizer::internal_strlen((const char *)name) + 1); 892 PRE_READ(path, __sanitizer::internal_strlen((const char *)path) + 1); 904 __sanitizer::internal_strlen((const char *)filename) + 1); [all …]
|
H A D | sanitizer_libc.cpp | 118 uptr len = internal_strlen(s); in internal_strdup() 162 res = const_cast<char *>(s) + internal_strlen(s); in internal_strchrnul() 174 uptr internal_strlen(const char *s) { in internal_strlen() function 181 const uptr srclen = internal_strlen(src); in internal_strlcat() 194 uptr len = internal_strlen(dst); in internal_strncat() 211 const uptr srclen = internal_strlen(src); in internal_strlcpy() 245 uptr len1 = internal_strlen(haystack); in internal_simple_strtoll() 246 uptr len2 = internal_strlen(needle); in internal_simple_strtoll()
|
H A D | sanitizer_common_interceptors.inc | 243 common_flags()->strict_string_checks ? (internal_strlen(s)) + 1 : (n) ) 383 // COMMON_INTERCEPTOR_ENTER will fail. We use internal_strlen here 386 return internal_strlen(s); 440 COMMON_INTERCEPTOR_INITIALIZE_RANGE(domain, internal_strlen(domain) + 1); 582 uptr len1 = internal_strlen(s1); 583 uptr len2 = internal_strlen(s2); 647 COMMON_INTERCEPTOR_READ_RANGE(ctx, str, internal_strlen(str) + 1); 650 internal_strlen(delimiters) + 1); 664 COMMON_INTERCEPTOR_READ_RANGE(ctx, result, internal_strlen(result) + 1); 668 COMMON_INTERCEPTOR_READ_RANGE(ctx, str, internal_strlen(str) + 1); [all …]
|
H A D | sanitizer_common.cpp | 93 res = pos + internal_strlen(strip_path_prefix); in StripPathPrefix() 257 str = spos + internal_strlen(templ); in TemplateMatch() 281 uptr len = internal_strlen(s); in ReadProcessName() 303 uptr name_len = internal_strlen(binary_name_cache_str); in ReadBinaryNameCached()
|
H A D | sanitizer_mac.cpp | 450 uptr name_len = internal_strlen(name); in GetEnv() 452 uptr len = internal_strlen(*env); in GetEnv() 475 return internal_strlen(buf); in ReadBinaryName() 676 bool launchd = (res == 0 && internal_strlen(vers) < 3); in GetOSVersion() 688 CHECK_GE(internal_strlen(vers), 3); in ParseVersion() 1009 uptr name_len = internal_strlen(name); in LeakyResetEnv() 1011 uptr len = internal_strlen(*env); in LeakyResetEnv() 1052 uptr old_env_len = internal_strlen(dyld_insert_libraries); in StripEnv() 1053 uptr dylib_name_len = internal_strlen(dylib_name); in StripEnv() 1054 uptr env_name_len = internal_strlen(kDyldInsertLibraries); in StripEnv()
|
H A D | sanitizer_fuchsia.cpp | 199 internal_strlen(mem_type)); in DoAnonymousMmapOrDie() 261 _zx_object_set_property(vmo, ZX_PROP_NAME, name, internal_strlen(name)); in DoMmapFixedOrDie() 366 internal_strlen(mem_type)); in MmapAlignedOrDieOnFatalError() 497 uptr NameLen = internal_strlen(name); in GetEnv() 512 return internal_strlen(buf); in ReadBinaryName()
|
H A D | sanitizer_suppressions.cpp | 44 new_file_path_size - internal_strlen(new_file_path) - 1); in GetPathAssumingFileIsRelativeToExec() 126 end = line + internal_strlen(line); in Parse()
|
H A D | sanitizer_symbolizer_libcdep.cpp | 76 found_delimiter ? found_delimiter - str : internal_strlen(str); in ExtractTokenUpToDelimiter() 81 if (*prefix_end != '\0') prefix_end += internal_strlen(delimiter); in ExtractTokenUpToDelimiter() 314 if (uptr size = internal_strlen(file_line_info)) { in ParseFileLineInfo() 520 if (!WriteToSymbolizer(command, internal_strlen(command))) in Restart()
|
H A D | sanitizer_common_interceptors_netbsd_compat.inc | 36 if (path) COMMON_INTERCEPTOR_READ_RANGE(ctx, path, internal_strlen(path) + 1); 102 if (path) COMMON_INTERCEPTOR_READ_RANGE(ctx, path, internal_strlen(path) + 1);
|
H A D | sanitizer_coverage_libcdep_new.cpp | 171 if (file_path && internal_strlen(file_path)) { in DumpCoverage() 181 if (file_path && internal_strlen(file_path)) { in DumpCoverage()
|
H A D | sanitizer_common_interceptors_format.inc | 306 COMMON_INTERCEPTOR_READ_RANGE(ctx, format, internal_strlen(format) + 1); 337 size = internal_strlen((const char *)argp) + 1; 353 size = internal_strlen(buf) + 1; 504 COMMON_INTERCEPTOR_READ_RANGE(ctx, format, internal_strlen(format) + 1); 561 len = internal_strlen((const char *)argp) + 1;
|
H A D | sanitizer_symbolizer_report.cpp | 176 CatastrophicErrorWrite(SanitizerToolName, internal_strlen(SanitizerToolName)); in StartReportDeadlySignal() 323 internal_strlen(SanitizerToolName)); in Lock()
|
H A D | sanitizer_libc.h | 59 uptr internal_strlen(const char *s);
|
H A D | sanitizer_symbolizer_posix_libcdep.cpp | 82 return swift_demangle_f(name, internal_strlen(name), 0, 0, 0); in DemangleSwift() 424 internal_strlen(kLLVMSymbolizerPrefix))) { in ChooseExternalSymbolizer()
|
H A D | sanitizer_coverage_fuchsia.cpp | 146 internal_strlen(vmo_name_)); in Setup()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/msan/ |
H A D | msan_dl.cpp | 28 __msan_unpoison(ptr->dli_fname, internal_strlen(ptr->dli_fname) + 1); in UnpoisonDllAddrInfo() 30 __msan_unpoison(ptr->dli_sname, internal_strlen(ptr->dli_sname) + 1); in UnpoisonDllAddrInfo() 49 __msan_unpoison(ptr->l_name, internal_strlen(ptr->l_name) + 1); in UnpoisonDllAddr1ExtraInfo() 59 __msan_unpoison(ptr->l_name, internal_strlen(ptr->l_name) + 1); in UnpoisonDllAddr1ExtraInfo()
|
H A D | msan_interceptors.cpp | 122 CHECK_UNPOISONED_STRING_OF_LEN((x), internal_strlen(x), (n)) 300 SIZE_T n = internal_strlen(src); in INTERCEPTOR() 323 SIZE_T n = internal_strlen(src); in INTERCEPTOR() 351 SIZE_T n = internal_strlen(src); in INTERCEPTOR() 362 SIZE_T n = internal_strlen(src); in INTERCEPTOR() 377 SIZE_T n = internal_strlen(buf); in INTERCEPTOR() 389 SIZE_T src_size = internal_strlen(src); in INTERCEPTOR() 390 SIZE_T dest_size = internal_strlen(dest); in INTERCEPTOR() 401 SIZE_T dest_size = internal_strlen(dest); in INTERCEPTOR() 710 __msan_unpoison(res, internal_strlen(res) + 1); in INTERCEPTOR() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/memprof/ |
H A D | memprof_interceptors.cpp | 180 uptr from_length = internal_strlen(from); in INTERCEPTOR() 182 uptr to_length = internal_strlen(to); in INTERCEPTOR() 195 uptr to_length = internal_strlen(to); in INTERCEPTOR() 208 uptr from_size = internal_strlen(from) + 1; in INTERCEPTOR() 220 uptr length = internal_strlen(s); in INTERCEPTOR() 234 uptr length = internal_strlen(s); in INTERCEPTOR()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/asan/ |
H A D | asan_interceptors.cpp | 57 ASAN_READ_STRING_OF_LEN((ctx), (s), internal_strlen(s), (n)) 516 uptr from_length = internal_strlen(from); 518 uptr to_length = internal_strlen(to); 540 uptr to_length = internal_strlen(to); 565 uptr from_size = internal_strlen(from) + 1; 589 uptr length = internal_strlen(s); 607 uptr length = internal_strlen(s);
|
/freebsd/contrib/llvm-project/compiler-rt/lib/fuzzer/ |
H A D | FuzzerInterceptors.cpp | 100 static size_t internal_strlen(const char *s) { in internal_strlen() function 109 size_t len1 = internal_strlen(haystack); in internal_strstr() 110 size_t len2 = internal_strlen(needle); in internal_strstr()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/symbolizer/ |
H A D | sanitizer_wrappers.cpp | 30 size_t internal_strlen(const char *s); 154 size_t strlen(const char *s) { return __sanitizer::internal_strlen(s); } in strlen()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/stats/ |
H A D | stats.cpp | 68 internal_strlen(mod->full_name()) + 1); in WriteModuleReport()
|