Home
last modified time | relevance | path

Searched refs:internal_strlen (Results 1 – 25 of 37) sorted by relevance

12

/freebsd/contrib/llvm-project/compiler-rt/lib/nsan/
H A Dnsan_interceptors.cpp87 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 Dsanitizer_file.cpp34 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 Dsanitizer_syscalls_netbsd.inc134 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 Dsanitizer_common_syscalls.inc421 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 Dsanitizer_libc.cpp118 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 Dsanitizer_common_interceptors.inc243 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 Dsanitizer_common.cpp93 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 Dsanitizer_mac.cpp450 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 Dsanitizer_fuchsia.cpp199 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 Dsanitizer_suppressions.cpp44 new_file_path_size - internal_strlen(new_file_path) - 1); in GetPathAssumingFileIsRelativeToExec()
126 end = line + internal_strlen(line); in Parse()
H A Dsanitizer_symbolizer_libcdep.cpp76 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 Dsanitizer_common_interceptors_netbsd_compat.inc36 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 Dsanitizer_coverage_libcdep_new.cpp171 if (file_path && internal_strlen(file_path)) { in DumpCoverage()
181 if (file_path && internal_strlen(file_path)) { in DumpCoverage()
H A Dsanitizer_common_interceptors_format.inc306 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 Dsanitizer_symbolizer_report.cpp176 CatastrophicErrorWrite(SanitizerToolName, internal_strlen(SanitizerToolName)); in StartReportDeadlySignal()
323 internal_strlen(SanitizerToolName)); in Lock()
H A Dsanitizer_libc.h59 uptr internal_strlen(const char *s);
H A Dsanitizer_symbolizer_posix_libcdep.cpp82 return swift_demangle_f(name, internal_strlen(name), 0, 0, 0); in DemangleSwift()
424 internal_strlen(kLLVMSymbolizerPrefix))) { in ChooseExternalSymbolizer()
H A Dsanitizer_coverage_fuchsia.cpp146 internal_strlen(vmo_name_)); in Setup()
/freebsd/contrib/llvm-project/compiler-rt/lib/msan/
H A Dmsan_dl.cpp28 __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 Dmsan_interceptors.cpp122 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 Dmemprof_interceptors.cpp180 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 Dasan_interceptors.cpp57 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 DFuzzerInterceptors.cpp100 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 Dsanitizer_wrappers.cpp30 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 Dstats.cpp68 internal_strlen(mod->full_name()) + 1); in WriteModuleReport()

12