/openbsd/gnu/llvm/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() 99 uptr len = internal_strlen(path); in SetReportPath() 212 uptr name_len = internal_strlen(name); in FindPathToBinary()
|
H A D | sanitizer_syscalls_netbsd.inc | 134 PRE_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); 186 PRE_READ(path, __sanitizer::internal_strlen(path) + 1); 201 PRE_READ(path, __sanitizer::internal_strlen(path) + 1); 697 PRE_READ(a, __sanitizer::internal_strlen(a) + 1); 703 PRE_READ(e, __sanitizer::internal_strlen(e) + 1); 718 POST_READ(a, __sanitizer::internal_strlen(a) + 1); 724 POST_READ(e, __sanitizer::internal_strlen(e) + 1); 1133 PRE_READ(to, __sanitizer::internal_strlen(to) + 1); [all …]
|
H A D | sanitizer_common_syscalls.inc | 407 PRE_READ(name, __sanitizer::internal_strlen((const char *)name) + 1); 735 __sanitizer::internal_strlen((const char *)name_user) + 1); 890 __sanitizer::internal_strlen((const char *)filename) + 1); 949 __sanitizer::internal_strlen((const char *)filename) + 1); 971 __sanitizer::internal_strlen((const char *)filename) + 1); 984 __sanitizer::internal_strlen((const char *)filename) + 1); 1017 __sanitizer::internal_strlen((const char *)filename) + 1); 1039 __sanitizer::internal_strlen((const char *)filename) + 1); 1253 __sanitizer::internal_strlen((const char *)new_root) + 1); 1263 __sanitizer::internal_strlen((const char *)filename) + 1); [all …]
|
H A D | sanitizer_libc.cpp | 109 uptr len = internal_strlen(s); in internal_strdup() 153 res = const_cast<char *>(s) + internal_strlen(s); in internal_strchrnul() 165 uptr internal_strlen(const char *s) { in internal_strlen() function 172 const uptr srclen = internal_strlen(src); in internal_strlcat() 185 uptr len = internal_strlen(dst); in internal_strncat() 194 const uptr srclen = internal_strlen(src); in internal_strlcpy() 220 uptr len1 = internal_strlen(haystack); in internal_strstr() 221 uptr len2 = internal_strlen(needle); in internal_strstr()
|
H A D | sanitizer_common_interceptors.inc | 432 return internal_strlen(s); 626 uptr len1 = internal_strlen(s1); 627 uptr len2 = internal_strlen(s2); 694 internal_strlen(delimiters) + 1); 757 (result ? result - s : internal_strlen(s)) + 1); 788 COMMON_INTERCEPTOR_READ_RANGE(ctx, s, internal_strlen(s) + 1); 834 r ? r - s1 + 1 : internal_strlen(s1) + 1); 1316 COMMON_INTERCEPTOR_READ_RANGE(ctx, s, internal_strlen(s) + 1); 2391 COMMON_INTERCEPTOR_INITIALIZE_RANGE(s, internal_strlen(s) + 1); 2397 COMMON_INTERCEPTOR_INITIALIZE_RANGE(s, internal_strlen(s) + 1); [all …]
|
H A D | sanitizer_common.cpp | 73 res = pos + internal_strlen(strip_path_prefix); in StripPathPrefix() 236 str = spos + internal_strlen(templ); in TemplateMatch() 260 uptr len = internal_strlen(s); in ReadProcessName() 282 uptr name_len = internal_strlen(binary_name_cache_str); in ReadBinaryNameCached()
|
H A D | sanitizer_fuchsia.cpp | 145 internal_strlen(mem_type)); in DoAnonymousMmapOrDie() 209 _zx_object_set_property(vmo, ZX_PROP_NAME, name, internal_strlen(name)); in DoMmapFixedOrDie() 302 internal_strlen(mem_type)); in MmapAlignedOrDieOnFatalError() 434 uptr NameLen = internal_strlen(name); in GetEnv() 449 return internal_strlen(buf); in ReadBinaryName()
|
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_suppressions.cpp | 44 new_file_path_size - internal_strlen(new_file_path) - 1); in GetPathAssumingFileIsRelativeToExec() 125 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() 304 if (uptr size = internal_strlen(file_line_info)) { in ParseFileLineInfo() 510 if (!WriteToSymbolizer(command, internal_strlen(command))) in SendCommandImpl()
|
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_symbolizer_report.cpp | 133 CatastrophicErrorWrite(SanitizerToolName, internal_strlen(SanitizerToolName)); in StartReportDeadlySignal() 280 internal_strlen(SanitizerToolName)); in Lock()
|
H A D | sanitizer_coverage_libcdep_new.cpp | 170 if (file_path && internal_strlen(file_path)) { in DumpCoverage() 180 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; 347 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, buf, internal_strlen(buf) + 1); 496 COMMON_INTERCEPTOR_READ_RANGE(ctx, format, internal_strlen(format) + 1); 551 size = internal_strlen((const char *)argp) + 1;
|
H A D | sanitizer_libc.h | 41 uptr internal_strlen(const char *s);
|
H A D | sanitizer_symbolizer_posix_libcdep.cpp | 81 return swift_demangle_f(name, internal_strlen(name), 0, 0, 0); in DemangleSwift() 425 internal_strlen(kLLVMSymbolizerPrefix))) { in ChooseExternalSymbolizer()
|
H A D | sanitizer_coverage_fuchsia.cpp | 146 internal_strlen(vmo_name_)); in Setup()
|
H A D | sanitizer_stacktrace_printer.cpp | 25 uptr prefix_len = internal_strlen(prefix); in StripFunctionName()
|
/openbsd/gnu/llvm/compiler-rt/lib/sanitizer_common/tests/ |
H A D | sanitizer_libc_test.cpp | 113 uptr len1 = internal_strlen(str1); in TEST() 115 uptr len2 = internal_strlen(str2); in TEST() 240 EXPECT_EQ(internal_strlen(dbuf), in test_internal_strlcpy() 241 std::min(internal_strlen(sbuf), (uptr)(kStrlcpyBufSize - 1))); in test_internal_strlcpy() 242 EXPECT_EQ(retval, internal_strlen(sbuf)); in test_internal_strlcpy() 246 if (internal_strlen(sbuf) > maxlen) { in test_internal_strlcpy() 249 EXPECT_EQ(internal_strlen(dbuf), maxlen - 1); in test_internal_strlcpy() 277 EXPECT_EQ(internal_strlen(dcatbuf), (uptr)0); in TEST() 282 EXPECT_EQ(internal_strlen(dcatbuf), (uptr)3); in TEST() 287 EXPECT_EQ(internal_strlen(dcatbuf), (uptr)6); in TEST() [all …]
|
/openbsd/gnu/llvm/compiler-rt/lib/memprof/ |
H A D | memprof_interceptors.cpp | 203 uptr from_length = internal_strlen(from); in INTERCEPTOR() 205 uptr to_length = internal_strlen(to); in INTERCEPTOR() 218 uptr to_length = internal_strlen(to); in INTERCEPTOR() 231 uptr from_size = internal_strlen(from) + 1; in INTERCEPTOR() 243 uptr length = internal_strlen(s); in INTERCEPTOR() 257 uptr length = internal_strlen(s); in INTERCEPTOR()
|
/openbsd/gnu/llvm/compiler-rt/lib/msan/ |
H A D | msan_interceptors.cpp | 284 SIZE_T n = internal_strlen(src); in INTERCEPTOR() 307 SIZE_T n = internal_strlen(src); in INTERCEPTOR() 335 SIZE_T n = internal_strlen(src); in INTERCEPTOR() 346 SIZE_T n = internal_strlen(src); in INTERCEPTOR() 361 SIZE_T n = internal_strlen(buf); in INTERCEPTOR() 373 SIZE_T src_size = internal_strlen(src); in INTERCEPTOR() 374 SIZE_T dest_size = internal_strlen(dest); in INTERCEPTOR() 385 SIZE_T dest_size = internal_strlen(dest); in INTERCEPTOR() 623 __msan_unpoison(res, internal_strlen(res) + 1); in INTERCEPTOR() 803 __msan_unpoison(s, internal_strlen(s) + 1); in INTERCEPTOR() [all …]
|
/openbsd/gnu/llvm/compiler-rt/lib/asan/ |
H A D | asan_interceptors.cpp | 53 ASAN_READ_STRING_OF_LEN((ctx), (s), internal_strlen(s), (n)) 409 uptr from_length = internal_strlen(from); in DEFINE_REAL() 411 uptr to_length = internal_strlen(to); in DEFINE_REAL() 433 uptr to_length = internal_strlen(to); in INTERCEPTOR() 458 uptr from_size = internal_strlen(from) + 1; in INTERCEPTOR() 471 uptr length = internal_strlen(s); in INTERCEPTOR() 487 uptr length = internal_strlen(s); in INTERCEPTOR()
|
/openbsd/gnu/llvm/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()
|
/openbsd/gnu/llvm/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()
|
/openbsd/gnu/llvm/compiler-rt/lib/stats/ |
H A D | stats.cpp | 68 internal_strlen(mod->full_name()) + 1); in WriteModuleReport()
|