Home | History | Annotate | Download | only in dfsan

Lines Matching refs:str1

75   char str1[] = "str1", str2[] = "str2";
76 dfsan_set_label(i_label, &str1[3], 1);
79 int rv = memcmp(str1, str2, sizeof(str1));
89 char str1[] = "str1";
90 char str2[sizeof(str1)];
91 dfsan_set_label(i_label, &str1[3], 1);
93 ASSERT_ZERO_LABEL(memcpy(str2, str1, sizeof(str1)));
94 assert(0 == memcmp(str2, str1, sizeof(str1)));
112 char str1[] = "str1", str2[] = "str2";
113 dfsan_set_label(i_label, &str1[3], 1);
116 int rv = strcmp(str1, str2);
126 char str1[] = "str1";
127 dfsan_set_label(i_label, &str1[3], 1);
129 int rv = strlen(str1);
139 char str1[] = "str1";
140 dfsan_set_label(i_label, &str1[3], 1);
142 char *strd = strdup(str1);
149 char str1[] = "str1";
150 char str2[sizeof(str1)];
151 dfsan_set_label(i_label, &str1[3], 1);
153 char *strd = strncpy(str2, str1, 5);
155 assert(strcmp(str1, str2) == 0);
162 strd = strncpy(str2, str1, 3);
164 assert(strncmp(str1, str2, 3) == 0);
172 char str1[] = "str1", str2[] = "str2";
173 dfsan_set_label(i_label, &str1[3], 1);
176 int rv = strncmp(str1, str2, sizeof(str1));
184 rv = strncmp(str1, str2, 3);
190 char str1[] = "str1", str2[] = "str2", str3[] = "Str1";
191 dfsan_set_label(i_label, &str1[3], 1);
195 int rv = strcasecmp(str1, str2);
203 rv = strcasecmp(str1, str3);
213 char str1[] = "Str1", str2[] = "str2";
214 dfsan_set_label(i_label, &str1[3], 1);
217 int rv = strncasecmp(str1, str2, sizeof(str1));
225 rv = strncasecmp(str1, str2, 3);
231 char str1[] = "str1";
232 dfsan_set_label(i_label, &str1[3], 1);
234 char *crv = strchr(str1, 'r');
235 assert(crv == &str1[2]);
238 crv = strchr(str1, '1');
239 assert(crv == &str1[3]);
246 crv = strchr(str1, 'x');
658 char str1[] = "str1str1";
659 dfsan_set_label(i_label, &str1[7], 1);
661 char *rv = strrchr(str1, 'r');
662 assert(rv == &str1[6]);
671 char str1[] = "str1str1";
672 dfsan_set_label(i_label, &str1[3], 1);
673 dfsan_set_label(j_label, &str1[5], 1);
675 char *rv = strstr(str1, "1s");
676 assert(rv == &str1[3]);
683 rv = strstr(str1, "2s");
693 char str1[] = "str1";
694 dfsan_set_label(i_label, &str1[3], 1);
695 dfsan_set_label(j_label, &str1[4], 1);
697 char *crv = (char *) memchr(str1, 'r', sizeof(str1));
698 assert(crv == &str1[2]);
701 crv = (char *) memchr(str1, '1', sizeof(str1));
702 assert(crv == &str1[3]);
709 crv = (char *) memchr(str1, 'x', sizeof(str1));