Home
last modified time | relevance | path

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

123

/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_libc_test.cc89 uptr len1 = internal_strlen(str1); in TEST()
91 uptr len2 = internal_strlen(str2); in TEST()
156 EXPECT_EQ(internal_strlen(dbuf), in test_internal_strlcpy()
157 std::min(internal_strlen(sbuf), (uptr)(kStrlcpyBufSize - 1))); in test_internal_strlcpy()
158 EXPECT_EQ(retval, internal_strlen(sbuf)); in test_internal_strlcpy()
162 if (internal_strlen(sbuf) > maxlen) { in test_internal_strlcpy()
165 EXPECT_EQ(internal_strlen(dbuf), maxlen - 1); in test_internal_strlcpy()
193 EXPECT_EQ(internal_strlen(dcatbuf), (uptr)0); in TEST()
198 EXPECT_EQ(internal_strlen(dcatbuf), (uptr)3); in TEST()
203 EXPECT_EQ(internal_strlen(dcatbuf), (uptr)6); in TEST()
[all …]
/external/llvm-project/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_libc_test.cpp103 uptr len1 = internal_strlen(str1); in TEST()
105 uptr len2 = internal_strlen(str2); in TEST()
230 EXPECT_EQ(internal_strlen(dbuf), in test_internal_strlcpy()
231 std::min(internal_strlen(sbuf), (uptr)(kStrlcpyBufSize - 1))); in test_internal_strlcpy()
232 EXPECT_EQ(retval, internal_strlen(sbuf)); in test_internal_strlcpy()
236 if (internal_strlen(sbuf) > maxlen) { in test_internal_strlcpy()
239 EXPECT_EQ(internal_strlen(dbuf), maxlen - 1); in test_internal_strlcpy()
267 EXPECT_EQ(internal_strlen(dcatbuf), (uptr)0); in TEST()
272 EXPECT_EQ(internal_strlen(dcatbuf), (uptr)3); in TEST()
277 EXPECT_EQ(internal_strlen(dcatbuf), (uptr)6); in TEST()
[all …]
/external/llvm-project/compiler-rt/lib/sanitizer_common/
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 …]
Dsanitizer_common_syscalls.inc385 PRE_READ(name, __sanitizer::internal_strlen((const char *)name) + 1);
670 PRE_READ(uargs, __sanitizer::internal_strlen((const char *)uargs) + 1);
678 __sanitizer::internal_strlen((const char *)name_user) + 1);
783 __sanitizer::internal_strlen((const char *)dev_name) + 1);
786 __sanitizer::internal_strlen((const char *)dir_name) + 1);
788 POST_WRITE(type, __sanitizer::internal_strlen((const char *)type) + 1);
797 POST_WRITE(name, __sanitizer::internal_strlen((const char *)name) + 1);
806 POST_WRITE(name, __sanitizer::internal_strlen((const char *)name) + 1);
812 PRE_READ(path, __sanitizer::internal_strlen((const char *)path) + 1);
824 __sanitizer::internal_strlen((const char *)filename) + 1);
[all …]
Dsanitizer_file.cpp33 report_file.Write(buffer, internal_strlen(buffer)); in RawWrite()
65 WriteToFile(kStderrFd, ErrorMsgPrefix, internal_strlen(ErrorMsgPrefix)); in ReopenIfNecessary()
66 WriteToFile(kStderrFd, full_path, internal_strlen(full_path)); in ReopenIfNecessary()
69 WriteToFile(kStderrFd, errmsg, internal_strlen(errmsg)); in ReopenIfNecessary()
77 uptr len = internal_strlen(path); in SetReportPath()
189 uptr name_len = internal_strlen(name); in FindPathToBinary()
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()
Dsanitizer_common.cpp66 res = pos + internal_strlen(strip_path_prefix); in StripPathPrefix()
222 str = spos + internal_strlen(templ); in TemplateMatch()
246 uptr len = internal_strlen(s); in ReadProcessName()
268 uptr name_len = internal_strlen(binary_name_cache_str); in ReadBinaryNameCached()
Dsanitizer_rtems.cpp249 return internal_strlen(buf); in ReadBinaryName()
254 return internal_strlen(buf); in ReadLongProcessName()
271 write(fd, kWriteError, internal_strlen(kWriteError)); in Write()
Dsanitizer_fuchsia.cpp182 internal_strlen(mem_type)); in DoAnonymousMmapOrDie()
247 _zx_object_set_property(vmo, ZX_PROP_NAME, name, internal_strlen(name)); in DoMmapFixedOrDie()
331 internal_strlen(mem_type)); in MmapAlignedOrDieOnFatalError()
472 uptr NameLen = internal_strlen(name); in GetEnv()
487 return internal_strlen(buf); in ReadBinaryName()
Dsanitizer_mac.cpp426 uptr name_len = internal_strlen(name); in GetEnv()
428 uptr len = internal_strlen(*env); in GetEnv()
451 return internal_strlen(buf); in ReadBinaryName()
654 CHECK_GE(internal_strlen(vers), 3); in ParseVersion()
892 uptr name_len = internal_strlen(name); in LeakyResetEnv()
894 uptr len = internal_strlen(*env); in LeakyResetEnv()
940 internal_strlen(dyld_insert_libraries) : 0; in MaybeReexec()
941 uptr fname_len = internal_strlen(info.dli_fname); in MaybeReexec()
943 uptr dylib_name_len = internal_strlen(dylib_name); in MaybeReexec()
1009 uptr env_name_len = internal_strlen(kDyldInsertLibraries); in MaybeReexec()
Dsanitizer_suppressions.cpp44 new_file_path_size - internal_strlen(new_file_path) - 1); in GetPathAssumingFileIsRelativeToExec()
125 end = line + internal_strlen(line); in Parse()
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()
302 if (uptr size = internal_strlen(file_line_info)) { in ParseFileLineInfo()
501 if (!WriteToSymbolizer(command, internal_strlen(command))) in SendCommandImpl()
Dsanitizer_symbolizer_report.cpp127 CatastrophicErrorWrite(SanitizerToolName, internal_strlen(SanitizerToolName)); in StartReportDeadlySignal()
274 internal_strlen(SanitizerToolName)); in ScopedErrorReportLock()
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;
Dsanitizer_libc.h41 uptr internal_strlen(const char *s);
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_common_syscalls.inc386 PRE_READ(name, __sanitizer::internal_strlen((const char *)name) + 1);
671 PRE_READ(uargs, __sanitizer::internal_strlen((const char *)uargs) + 1);
679 __sanitizer::internal_strlen((const char *)name_user) + 1);
784 __sanitizer::internal_strlen((const char *)dev_name) + 1);
787 __sanitizer::internal_strlen((const char *)dir_name) + 1);
789 POST_WRITE(type, __sanitizer::internal_strlen((const char *)type) + 1);
798 POST_WRITE(name, __sanitizer::internal_strlen((const char *)name) + 1);
807 POST_WRITE(name, __sanitizer::internal_strlen((const char *)name) + 1);
813 PRE_READ(path, __sanitizer::internal_strlen((const char *)path) + 1);
825 __sanitizer::internal_strlen((const char *)filename) + 1);
[all …]
Dsanitizer_libc.cc108 uptr len = internal_strlen(s); in internal_strdup()
160 res = const_cast<char *>(s) + internal_strlen(s); in internal_strchrnul()
172 uptr internal_strlen(const char *s) { in internal_strlen() function
179 const uptr srclen = internal_strlen(src); in internal_strlcat()
192 uptr len = internal_strlen(dst); in internal_strncat()
201 const uptr srclen = internal_strlen(src); in internal_strlcpy()
227 uptr len1 = internal_strlen(haystack); in internal_strstr()
228 uptr len2 = internal_strlen(needle); in internal_strstr()
Dsanitizer_common.cc34 report_file.Write(buffer, internal_strlen(buffer)); in RawWrite()
65 WriteToFile(kStderrFd, ErrorMsgPrefix, internal_strlen(ErrorMsgPrefix)); in ReopenIfNecessary()
66 WriteToFile(kStderrFd, full_path, internal_strlen(full_path)); in ReopenIfNecessary()
75 uptr len = internal_strlen(path); in SetReportPath()
176 res = pos + internal_strlen(strip_path_prefix); in StripPathPrefix()
325 str = spos + internal_strlen(templ); in TemplateMatch()
349 uptr name_len = internal_strlen(name); in FindPathToBinary()
379 uptr len = internal_strlen(s); in ReadProcessName()
401 uptr name_len = internal_strlen(binary_name_cache_str); in ReadBinaryNameCached()
Dsanitizer_mac.cc287 uptr name_len = internal_strlen(name); in GetEnv()
289 uptr len = internal_strlen(*env); in GetEnv()
312 return internal_strlen(buf); in ReadBinaryName()
562 uptr name_len = internal_strlen(name); in LeakyResetEnv()
564 uptr len = internal_strlen(*env); in LeakyResetEnv()
617 internal_strlen(dyld_insert_libraries) : 0; in MaybeReexec()
618 uptr fname_len = internal_strlen(info.dli_fname); in MaybeReexec()
620 uptr dylib_name_len = internal_strlen(dylib_name); in MaybeReexec()
683 uptr env_name_len = internal_strlen(kDyldInsertLibraries); in MaybeReexec()
Dsanitizer_coverage_mapping_libcdep.cc94 InternalScopedString tmp_path(64 + internal_strlen(coverage_dir)); in CovUpdateMapping()
112 InternalScopedString path(64 + internal_strlen(coverage_dir)); in CovUpdateMapping()
Dsanitizer_suppressions.cc43 new_file_path_size - internal_strlen(new_file_path) - 1); in GetPathAssumingFileIsRelativeToExec()
112 end = line + internal_strlen(line); in Parse()
Dsanitizer_symbolizer_libcdep.cc54 found_delimiter ? found_delimiter - str : internal_strlen(str); in ExtractTokenUpToDelimiter()
59 if (*prefix_end != '\0') prefix_end += internal_strlen(delimiter); in ExtractTokenUpToDelimiter()
379 if (!WriteToSymbolizer(command, internal_strlen(command))) in SendCommandImpl()
/external/llvm-project/compiler-rt/lib/fuzzer/
DFuzzerInterceptors.cpp99 static size_t internal_strlen(const char *s) { in internal_strlen() function
108 size_t len1 = internal_strlen(haystack); in internal_strstr()
109 size_t len2 = internal_strlen(needle); in internal_strstr()
/external/rust/crates/libfuzzer-sys/libfuzzer/
DFuzzerInterceptors.cpp99 static size_t internal_strlen(const char *s) { in internal_strlen() function
108 size_t len1 = internal_strlen(haystack); in internal_strstr()
109 size_t len2 = internal_strlen(needle); in internal_strstr()
/external/llvm-project/compiler-rt/lib/sanitizer_common/symbolizer/
Dsanitizer_wrappers.cpp29 size_t internal_strlen(const char *s);
153 size_t strlen(const char *s) { return __sanitizer::internal_strlen(s); } in strlen()

123