/external/compiler-rt/test/asan/TestCases/ |
H A D | strspn_strict.c | 13 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 D | strstr_strict.c | 13 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 D | strcspn-1.c | 1 // 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 D | strpbrk-2.c | 13 char s1[] = "c"; local 16 r = strpbrk(s1, s2); 18 assert(r == s1);
|
H A D | strspn-1.c | 1 // 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 D | copy.pass.cpp | 14 // 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 D | copy.pass.cpp | 14 // 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 D | data_log_helpers_unittest.cc | 24 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 D | find.pass.cpp | 35 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 D | find.pass.cpp | 35 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 D | cfi-blacklist.cpp | 20 void s1f(S1 *s1) { argument 21 s1->f();
|
H A D | no-opt-volatile-memcpy.cpp | 27 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 D | pragma-pack-3.c | 31 struct s1 { struct 35 int b[sizeof(struct s1) == 4 ? 1 : -1];
|
H A D | pragma-pack-4.c | 15 struct s1 { struct 20 int arr0[((sizeof(struct s1) % 64) == 0) ? 1 : -1];
|
/external/compiler-rt/test/sanitizer_common/TestCases/ |
H A D | strcspn.c | 8 char s1[] = "ad"; local 10 r = strcspn(s1, s2);
|
H A D | strspn.c | 8 char s1[] = "ab"; local 10 r = strspn(s1, s2);
|
/external/syslinux/com32/lib/ |
H A D | memcmp.c | 7 int memcmp(const void *s1, const void *s2, size_t n) argument 9 const unsigned char *c1 = s1, *c2 = s2;
|
H A D | strcmp.c | 7 int strcmp(const char *s1, const char *s2) argument 9 const unsigned char *c1 = (const unsigned char *)s1;
|
/external/valgrind/helgrind/tests/ |
H A D | tc18_semabuse.c | 20 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 D | utility.c | 12 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 D | b.h | 4 S<int> *s1; variable
|
/external/llvm/test/MC/AMDGPU/ |
H A D | sop1-err.s | 8 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 D | fb_test_amd64_muldiv.h | 4 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 D | memorycmp.c | 25 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 D | memorycmp.c | 25 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...] |