Home
last modified time | relevance | path

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

12

/openbsd/gnu/llvm/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()
99 uptr len = internal_strlen(path); in SetReportPath()
212 uptr name_len = internal_strlen(name); in FindPathToBinary()
H A Dsanitizer_syscalls_netbsd.inc134 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 Dsanitizer_common_syscalls.inc407 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 Dsanitizer_libc.cpp109 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 Dsanitizer_common_interceptors.inc432 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 Dsanitizer_common.cpp73 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 Dsanitizer_fuchsia.cpp145 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 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_suppressions.cpp44 new_file_path_size - internal_strlen(new_file_path) - 1); in GetPathAssumingFileIsRelativeToExec()
125 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()
304 if (uptr size = internal_strlen(file_line_info)) { in ParseFileLineInfo()
510 if (!WriteToSymbolizer(command, internal_strlen(command))) in SendCommandImpl()
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_symbolizer_report.cpp133 CatastrophicErrorWrite(SanitizerToolName, internal_strlen(SanitizerToolName)); in StartReportDeadlySignal()
280 internal_strlen(SanitizerToolName)); in Lock()
H A Dsanitizer_coverage_libcdep_new.cpp170 if (file_path && internal_strlen(file_path)) { in DumpCoverage()
180 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;
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 Dsanitizer_libc.h41 uptr internal_strlen(const char *s);
H A Dsanitizer_symbolizer_posix_libcdep.cpp81 return swift_demangle_f(name, internal_strlen(name), 0, 0, 0); in DemangleSwift()
425 internal_strlen(kLLVMSymbolizerPrefix))) { in ChooseExternalSymbolizer()
H A Dsanitizer_coverage_fuchsia.cpp146 internal_strlen(vmo_name_)); in Setup()
H A Dsanitizer_stacktrace_printer.cpp25 uptr prefix_len = internal_strlen(prefix); in StripFunctionName()
/openbsd/gnu/llvm/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_libc_test.cpp113 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 Dmemprof_interceptors.cpp203 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 Dmsan_interceptors.cpp284 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 Dasan_interceptors.cpp53 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 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()
/openbsd/gnu/llvm/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()
/openbsd/gnu/llvm/compiler-rt/lib/stats/
H A Dstats.cpp68 internal_strlen(mod->full_name()) + 1); in WriteModuleReport()

12