• Home
  • Raw
  • Download

Lines Matching refs:str1

75   char str1[] = "str1", str2[] = "str2";  in test_memcmp()  local
76 dfsan_set_label(i_label, &str1[3], 1); in test_memcmp()
79 int rv = memcmp(str1, str2, sizeof(str1)); in test_memcmp()
89 char str1[] = "str1"; in test_memcpy() local
90 char str2[sizeof(str1)]; in test_memcpy()
91 dfsan_set_label(i_label, &str1[3], 1); in test_memcpy()
93 ASSERT_ZERO_LABEL(memcpy(str2, str1, sizeof(str1))); in test_memcpy()
94 assert(0 == memcmp(str2, str1, sizeof(str1))); in test_memcpy()
112 char str1[] = "str1", str2[] = "str2"; in test_strcmp() local
113 dfsan_set_label(i_label, &str1[3], 1); in test_strcmp()
116 int rv = strcmp(str1, str2); in test_strcmp()
126 char str1[] = "str1"; in test_strlen() local
127 dfsan_set_label(i_label, &str1[3], 1); in test_strlen()
129 int rv = strlen(str1); in test_strlen()
139 char str1[] = "str1"; in test_strdup() local
140 dfsan_set_label(i_label, &str1[3], 1); in test_strdup()
142 char *strd = strdup(str1); in test_strdup()
149 char str1[] = "str1"; in test_strncpy() local
150 char str2[sizeof(str1)]; in test_strncpy()
151 dfsan_set_label(i_label, &str1[3], 1); in test_strncpy()
153 char *strd = strncpy(str2, str1, 5); in test_strncpy()
155 assert(strcmp(str1, str2) == 0); in test_strncpy()
162 strd = strncpy(str2, str1, 3); in test_strncpy()
164 assert(strncmp(str1, str2, 3) == 0); in test_strncpy()
172 char str1[] = "str1", str2[] = "str2"; in test_strncmp() local
173 dfsan_set_label(i_label, &str1[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
191 dfsan_set_label(i_label, &str1[3], 1); in test_strcasecmp()
195 int rv = strcasecmp(str1, str2); in test_strcasecmp()
203 rv = strcasecmp(str1, str3); in test_strcasecmp()
213 char str1[] = "Str1", str2[] = "str2"; in test_strncasecmp() local
214 dfsan_set_label(i_label, &str1[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()
231 char str1[] = "str1"; in test_strchr() local
232 dfsan_set_label(i_label, &str1[3], 1); in test_strchr()
234 char *crv = strchr(str1, 'r'); in test_strchr()
235 assert(crv == &str1[2]); in test_strchr()
238 crv = strchr(str1, '1'); in test_strchr()
239 assert(crv == &str1[3]); in test_strchr()
246 crv = strchr(str1, 'x'); in test_strchr()
658 char str1[] = "str1str1"; in test_strrchr() local
659 dfsan_set_label(i_label, &str1[7], 1); in test_strrchr()
661 char *rv = strrchr(str1, 'r'); in test_strrchr()
662 assert(rv == &str1[6]); in test_strrchr()
671 char str1[] = "str1str1"; in test_strstr() local
672 dfsan_set_label(i_label, &str1[3], 1); in test_strstr()
673 dfsan_set_label(j_label, &str1[5], 1); in test_strstr()
675 char *rv = strstr(str1, "1s"); in test_strstr()
676 assert(rv == &str1[3]); in test_strstr()
683 rv = strstr(str1, "2s"); in test_strstr()
693 char str1[] = "str1"; in test_memchr() local
694 dfsan_set_label(i_label, &str1[3], 1); in test_memchr()
695 dfsan_set_label(j_label, &str1[4], 1); in test_memchr()
697 char *crv = (char *) memchr(str1, 'r', sizeof(str1)); in test_memchr()
698 assert(crv == &str1[2]); in test_memchr()
701 crv = (char *) memchr(str1, '1', sizeof(str1)); in test_memchr()
702 assert(crv == &str1[3]); in test_memchr()
709 crv = (char *) memchr(str1, 'x', sizeof(str1)); in test_memchr()