Searched refs:s1 (Results 51 - 75 of 1628) sorted by relevance

1234567891011>>

/external/compiler-rt/test/asan/TestCases/
H A Dstrspn_strict.c13 char *s1 = (char*)malloc(size); local
15 memset(s1, fill, size);
16 s1[0] = s2[0] = 'z';
18 size_t r = strspn(s1, s2);
22 free(s1);
H A Dstrstr_strict.c13 char *s1 = (char*)malloc(size); local
15 memset(s1, fill, size);
18 char* r = strstr(s1, s2);
21 assert(r == s1);
22 free(s1);
H A Dstrcspn-1.c1 // Test string s1 overflow in strcspn function
14 char s1[4] = "caB"; local
15 __asan_poison_memory_region ((char *)&s1[2], 2);
16 r = strcspn(s1, s2);
17 // CHECK:'s1' <== Memory access at offset {{[0-9]+}} partially overflows this variable
H A Dstrpbrk-2.c13 char s1[] = "c"; local
16 r = strpbrk(s1, s2);
18 assert(r == s1);
H A Dstrspn-1.c1 // Test string s1 overflow in strspn function
14 char s1[4] = "acb"; local
15 __asan_poison_memory_region ((char *)&s1[2], 2);
16 r = strspn(s1, s2);
17 // CHECK:'s1' <== Memory access at offset {{[0-9]+}} partially overflows this variable
/external/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/
H A Dcopy.pass.cpp14 // static char_type* copy(char_type* s1, const char_type* s2, size_t n);
22 char16_t s1[] = {1, 2, 3}; local
24 assert(std::char_traits<char16_t>::copy(s2, s1, 3) == s2);
28 assert(std::char_traits<char16_t>::copy(NULL, s1, 0) == NULL);
29 assert(std::char_traits<char16_t>::copy(s1, NULL, 0) == s1);
/external/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/
H A Dcopy.pass.cpp14 // static char_type* copy(char_type* s1, const char_type* s2, size_t n);
22 char32_t s1[] = {1, 2, 3}; local
24 assert(std::char_traits<char32_t>::copy(s2, s1, 3) == s2);
28 assert(std::char_traits<char32_t>::copy(NULL, s1, 0) == NULL);
29 assert(std::char_traits<char32_t>::copy(s1, NULL, 0) == s1);
/external/webrtc/webrtc/system_wrappers/source/
H A Ddata_log_helpers_unittest.cc24 std::string s1, s2; local
25 v1.ToString(&s1);
27 ASSERT_EQ(s1, "5,");
30 v1.ToString(&s1);
31 ASSERT_EQ(s1, s2);
39 std::string s1, s2; local
40 v1.ToString(&s1);
42 ASSERT_EQ(s1, "3.5,");
45 v1.ToString(&s1);
46 ASSERT_EQ(s1, s
55 std::string s1, s2, s3; local
[all...]
/external/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char/
H A Dfind.pass.cpp35 char s1[] = {1, 2, 3}; local
36 assert(std::char_traits<char>::find(s1, 3, char(1)) == s1);
37 assert(std::char_traits<char>::find(s1, 3, char(2)) == s1+1);
38 assert(std::char_traits<char>::find(s1, 3, char(3)) == s1+2);
39 assert(std::char_traits<char>::find(s1, 3, char(4)) == 0);
40 assert(std::char_traits<char>::find(s1, 3, char(0)) == 0);
/external/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.wchar.t/
H A Dfind.pass.cpp35 wchar_t s1[] = {1, 2, 3}; local
36 assert(std::char_traits<wchar_t>::find(s1, 3, wchar_t(1)) == s1);
37 assert(std::char_traits<wchar_t>::find(s1, 3, wchar_t(2)) == s1+1);
38 assert(std::char_traits<wchar_t>::find(s1, 3, wchar_t(3)) == s1+2);
39 assert(std::char_traits<wchar_t>::find(s1, 3, wchar_t(4)) == 0);
40 assert(std::char_traits<wchar_t>::find(s1, 3, wchar_t(0)) == 0);
/external/clang/test/CodeGenCXX/
H A Dcfi-blacklist.cpp20 void s1f(S1 *s1) { argument
21 s1->f();
H A Dno-opt-volatile-memcpy.cpp27 struct s1 { struct
31 struct s1 s;
38 // CHECK: call void @llvm.memcpy.{{.*}}(i8* getelementptr inbounds (%struct.s1, %struct.s1* @s, i32 0, i32 0, i32 0, i32 0), i8* getelementptr inbounds (%struct.s1, %struct.s1* @s, i32 0, i32 0, i32 0, i32 0), i64 132, i32 4, i1 true)
39 // CHECK-NEXT: call void @llvm.memcpy.{{.*}}(i8* getelementptr inbounds (%struct.s1, %struct.s1* @s, i32 0, i32 0, i32 0, i32 0), i8* getelementptr inbounds (%struct.s, %struct.s* @gs, i32 0, i32 0, i32 0), i64 132, i32 4, i1 true)
41 struct d : s1 {
/external/clang/test/Sema/
H A Dpragma-pack-3.c31 struct s1 { struct
35 int b[sizeof(struct s1) == 4 ? 1 : -1];
H A Dpragma-pack-4.c15 struct s1 { struct
20 int arr0[((sizeof(struct s1) % 64) == 0) ? 1 : -1];
/external/compiler-rt/test/sanitizer_common/TestCases/
H A Dstrcspn.c8 char s1[] = "ad"; local
10 r = strcspn(s1, s2);
H A Dstrspn.c8 char s1[] = "ab"; local
10 r = strspn(s1, s2);
/external/syslinux/com32/lib/
H A Dmemcmp.c7 int memcmp(const void *s1, const void *s2, size_t n) argument
9 const unsigned char *c1 = s1, *c2 = s2;
H A Dstrcmp.c7 int strcmp(const char *s1, const char *s2) argument
9 const unsigned char *c1 = (const unsigned char *)s1;
/external/valgrind/helgrind/tests/
H A Dtc18_semabuse.c20 sem_t s1; local
23 r= sem_init(&s1, 0, ~0);
26 r= sem_init(&s1, 0, 0);
33 memset(&s1, 0x55, sizeof(s1));
34 r= sem_wait(&s1); /* assert(r != 0); */
40 r= sem_post(&s1);
42 sem_destroy(&s1);
/external/vboot_reference/firmware/lib/
H A Dutility.c12 int SafeMemcmp(const void *s1, const void *s2, size_t n) { argument
13 const unsigned char *us1 = s1;
/external/clang/test/Modules/Inputs/template-specialization-visibility/
H A Db.h4 S<int> *s1; variable
/external/llvm/test/MC/AMDGPU/
H A Dsop1-err.s8 s_mov_b32 s1, v0
23 s_mov_b64 s1, s[0:1]
26 s_mov_b64 s[0:1], s1
30 s_mov_b32 s1, 0xfffffffff
/external/valgrind/none/tests/amd64/
H A Dfb_test_amd64_muldiv.h4 int64 res, s1, s0, flags; local
6 s1 = op1;
15 : "q" (s1), "0" (res), "1" (flags));
17 stringify(OP) "b", s0, s1, res, flags & CC_MASK);
22 int64 res, s1, flags, resh; local
23 s1 = op1;
33 : "q" (s1), "0" (res), "1" (flags), "2" (resh));
35 stringify(OP) "w", op0h, op0, s1, resh, res, flags & CC_MASK);
40 int64 res, s1, flags, resh; local
41 s1
58 int64 res, s1, flags, resh; local
[all...]
/external/honggfuzz/includes/libhfuzz/
H A Dmemorycmp.c25 static inline int _strcmp(const char* s1, const char* s2, uintptr_t addr) { argument
29 for (i = 0; s1[i] == s2[i]; i++) {
30 if (s1[i] == '\0' || s2[i] == '\0') {
36 return (s1[i] - s2[i]);
39 static inline int _strcasecmp(const char* s1, const char* s2, uintptr_t addr) { argument
43 for (i = 0; tolower(s1[i]) == tolower(s2[i]); i++) {
44 if (s1[i] == '\0' || s2[i] == '\0') {
50 return (tolower(s1[i]) - tolower(s2[i]));
53 static inline int _strncmp(const char* s1, const char* s2, size_t n, uintptr_t addr) { argument
62 if (s1[
76 _strncasecmp(const char* s1, const char* s2, size_t n, uintptr_t addr) argument
127 const unsigned char* s1 = (const unsigned char*)m1; local
167 HF_WEAK_WRAP(int, strcmp, const char* s1, const char* s2) argument
170 HF_WEAK_WRAP(int, strcasecmp, const char* s1, const char* s2) argument
173 HF_WEAK_WRAP(int, strncmp, const char* s1, const char* s2, size_t n) argument
176 HF_WEAK_WRAP(int, strncasecmp, const char* s1, const char* s2, size_t n) argument
199 HF_WEAK_WRAP(int, ap_cstr_casecmp, const char* s1, const char* s2) argument
203 HF_WEAK_WRAP(int, ap_cstr_casecmpn, const char* s1, const char* s2, size_t n) argument
207 HF_WEAK_WRAP(const char*, ap_strcasestr, const char* s1, const char* s2) argument
211 HF_WEAK_WRAP(int, apr_cstr_casecmp, const char* s1, const char* s2) argument
215 HF_WEAK_WRAP(int, apr_cstr_casecmpn, const char* s1, const char* s2, size_t n) argument
230 HF_WEAK_WRAP(int, OPENSSL_strcasecmp, const char* s1, const char* s2) argument
234 HF_WEAK_WRAP(int, OPENSSL_strncasecmp, const char* s1, const char* s2, size_t len) argument
241 HF_WEAK_WRAP(int, xmlStrncmp, const char* s1, const char* s2, int len) argument
257 HF_WEAK_WRAP(int, xmlStrcmp, const char* s1, const char* s2) argument
270 HF_WEAK_WRAP(int, xmlStrEqual, const char* s1, const char* s2) argument
286 HF_WEAK_WRAP(int, xmlStrcasecmp, const char* s1, const char* s2) argument
299 HF_WEAK_WRAP(int, xmlStrncasecmp, const char* s1, const char* s2, int len) argument
[all...]
/external/honggfuzz/libhfuzz/
H A Dmemorycmp.c25 static inline int _strcmp(const char* s1, const char* s2, uintptr_t addr) { argument
29 for (i = 0; s1[i] == s2[i]; i++) {
30 if (s1[i] == '\0' || s2[i] == '\0') {
36 return (s1[i] - s2[i]);
39 static inline int _strcasecmp(const char* s1, const char* s2, uintptr_t addr) { argument
43 for (i = 0; tolower(s1[i]) == tolower(s2[i]); i++) {
44 if (s1[i] == '\0' || s2[i] == '\0') {
50 return (tolower(s1[i]) - tolower(s2[i]));
53 static inline int _strncmp(const char* s1, const char* s2, size_t n, uintptr_t addr) { argument
62 if (s1[
76 _strncasecmp(const char* s1, const char* s2, size_t n, uintptr_t addr) argument
127 const unsigned char* s1 = (const unsigned char*)m1; local
167 HF_WEAK_WRAP(int, strcmp, const char* s1, const char* s2) argument
170 HF_WEAK_WRAP(int, strcasecmp, const char* s1, const char* s2) argument
173 HF_WEAK_WRAP(int, strncmp, const char* s1, const char* s2, size_t n) argument
176 HF_WEAK_WRAP(int, strncasecmp, const char* s1, const char* s2, size_t n) argument
199 HF_WEAK_WRAP(int, ap_cstr_casecmp, const char* s1, const char* s2) argument
203 HF_WEAK_WRAP(int, ap_cstr_casecmpn, const char* s1, const char* s2, size_t n) argument
207 HF_WEAK_WRAP(const char*, ap_strcasestr, const char* s1, const char* s2) argument
211 HF_WEAK_WRAP(int, apr_cstr_casecmp, const char* s1, const char* s2) argument
215 HF_WEAK_WRAP(int, apr_cstr_casecmpn, const char* s1, const char* s2, size_t n) argument
230 HF_WEAK_WRAP(int, OPENSSL_strcasecmp, const char* s1, const char* s2) argument
234 HF_WEAK_WRAP(int, OPENSSL_strncasecmp, const char* s1, const char* s2, size_t len) argument
241 HF_WEAK_WRAP(int, xmlStrncmp, const char* s1, const char* s2, int len) argument
257 HF_WEAK_WRAP(int, xmlStrcmp, const char* s1, const char* s2) argument
270 HF_WEAK_WRAP(int, xmlStrEqual, const char* s1, const char* s2) argument
286 HF_WEAK_WRAP(int, xmlStrcasecmp, const char* s1, const char* s2) argument
299 HF_WEAK_WRAP(int, xmlStrncasecmp, const char* s1, const char* s2, int len) argument
[all...]

Completed in 826 milliseconds

1234567891011>>