Lines Matching refs:str2
75 char str1[] = "str1", str2[] = "str2"; in test_memcmp() local
77 dfsan_set_label(j_label, &str2[3], 1); in test_memcmp()
79 int rv = memcmp(str1, str2, sizeof(str1)); in test_memcmp()
90 char str2[sizeof(str1)]; in test_memcpy() local
93 ASSERT_ZERO_LABEL(memcpy(str2, str1, sizeof(str1))); in test_memcpy()
94 assert(0 == memcmp(str2, str1, sizeof(str1))); in test_memcpy()
95 ASSERT_ZERO_LABEL(str2[0]); in test_memcpy()
96 ASSERT_LABEL(str2[3], i_label); in test_memcpy()
112 char str1[] = "str1", str2[] = "str2"; in test_strcmp() local
114 dfsan_set_label(j_label, &str2[3], 1); in test_strcmp()
116 int rv = strcmp(str1, str2); in test_strcmp()
150 char str2[sizeof(str1)]; in test_strncpy() local
153 char *strd = strncpy(str2, str1, 5); in test_strncpy()
154 assert(strd == str2); in test_strncpy()
155 assert(strcmp(str1, str2) == 0); in test_strncpy()
162 strd = strncpy(str2, str1, 3); in test_strncpy()
163 assert(strd == str2); in test_strncpy()
164 assert(strncmp(str1, str2, 3) == 0); in test_strncpy()
172 char str1[] = "str1", str2[] = "str2"; in test_strncmp() local
174 dfsan_set_label(j_label, &str2[3], 1); in test_strncmp()
176 int rv = strncmp(str1, str2, sizeof(str1)); in test_strncmp()
184 rv = strncmp(str1, str2, 3); in test_strncmp()
190 char str1[] = "str1", str2[] = "str2", str3[] = "Str1"; in test_strcasecmp() local
192 dfsan_set_label(j_label, &str2[3], 1); in test_strcasecmp()
195 int rv = strcasecmp(str1, str2); in test_strcasecmp()
213 char str1[] = "Str1", str2[] = "str2"; in test_strncasecmp() local
215 dfsan_set_label(j_label, &str2[3], 1); in test_strncasecmp()
217 int rv = strncasecmp(str1, str2, sizeof(str1)); in test_strncasecmp()
225 rv = strncasecmp(str1, str2, 3); in test_strncasecmp()