Lines Matching refs:i_label

34 dfsan_label i_label = 0;  variable
53 dfsan_set_label(i_label, &i, sizeof(i)); in test_stat()
62 ASSERT_LABEL(s.st_dev, i_label); in test_stat()
67 dfsan_set_label(i_label, &i, sizeof(i)); in test_fstat()
79 dfsan_set_label(i_label, &str1[3], 1); in test_memcmp()
93 dfsan_set_label(i_label, &str1[3], 1); in test_bcmp()
112 dfsan_set_label(i_label, &str1[3], 1); in test_memcpy()
117 ASSERT_LABEL(str2[3], i_label); in test_memcpy()
134 dfsan_set_label(i_label, &str1[3], 1); in test_strcmp()
148 dfsan_set_label(i_label, &str1[3], 1); in test_strlen()
155 ASSERT_LABEL(rv, i_label); in test_strlen()
161 dfsan_set_label(i_label, &str1[3], 1); in test_strdup()
165 ASSERT_LABEL(strd[3], i_label); in test_strdup()
172 dfsan_set_label(i_label, &str1[3], 1); in test_strncpy()
181 ASSERT_LABEL(strd[3], i_label); in test_strncpy()
194 dfsan_set_label(i_label, &str1[3], 1); in test_strncmp()
202 ASSERT_LABEL(rv, dfsan_union(i_label, j_label)); in test_strncmp()
212 dfsan_set_label(i_label, &str1[3], 1); in test_strcasecmp()
221 ASSERT_LABEL(rv, dfsan_union(i_label, j_label)); in test_strcasecmp()
229 ASSERT_LABEL(rv, dfsan_union(i_label, j_label)); in test_strcasecmp()
234 dfsan_set_label(i_label, &s1[2], 1); in test_strcasecmp()
242 ASSERT_LABEL(rv, dfsan_union(i_label, j_label)); in test_strcasecmp()
248 dfsan_set_label(i_label, &str1[3], 1); in test_strncasecmp()
256 ASSERT_LABEL(rv, dfsan_union(i_label, j_label)); in test_strncasecmp()
265 dfsan_set_label(i_label, &s1[2], 1); in test_strncasecmp()
285 ASSERT_LABEL(rv, dfsan_union(i_label, j_label)); in test_strncasecmp()
291 dfsan_set_label(i_label, &str1[3], 1); in test_strchr()
302 ASSERT_LABEL(crv, i_label); in test_strchr()
310 ASSERT_LABEL(crv, i_label); in test_strchr()
321 ASSERT_LABEL(crv, i_label); in test_strchr()
331 dfsan_set_label(i_label, crv, 100); in test_calloc()
341 dfsan_set_label(i_label, buf, 1); in test_read()
344 ASSERT_LABEL(buf[0], i_label); in test_read()
358 dfsan_set_label(i_label, buf, 1); in test_pread()
361 ASSERT_LABEL(buf[0], i_label); in test_pread()
401 dfsan_set_label(i_label, &t, sizeof(t)); in test_ctime_r()
404 ASSERT_READ_LABEL(buf, strlen(buf) + 1, i_label); in test_ctime_r()
446 dfsan_set_label(i_label, &fd, sizeof(fd)); in test_dfsan_set_write_callback()
453 ASSERT_READ_LABEL(&last_fd, sizeof(last_fd), i_label); in test_dfsan_set_write_callback()
478 dfsan_set_label(i_label, buf + 2, 2); in test_getcwd()
483 dfsan_set_label(i_label, &ptr, sizeof(ptr)); in test_getcwd()
485 ASSERT_LABEL(ret, i_label); in test_getcwd()
497 dfsan_set_label(i_label, buf + 2, 2); in test_gethostname()
504 dfsan_set_label(i_label, &rlim, sizeof(rlim)); in test_getrlimit()
511 dfsan_set_label(i_label, &usage, sizeof(usage)); in test_getrusage()
521 dfsan_set_label(i_label, src + 2, 1); in test_strcpy()
524 dfsan_set_label(i_label, dst + 12, 1); in test_strcpy()
535 ASSERT_LABEL(dst[12], i_label); in test_strcpy()
541 dfsan_set_label(i_label, buf + 1, 1); in test_strtol()
552 dfsan_set_label(i_label, buf + 1, 1); in test_strtoll()
563 dfsan_set_label(i_label, buf + 1, 1); in test_strtoul()
574 dfsan_set_label(i_label, buf + 1, 1); in test_strtoull()
585 dfsan_set_label(i_label, buf + 1, 1); in test_strtod()
595 dfsan_set_label(i_label, &t, 1); in test_time()
604 dfsan_set_label(i_label, addr4 + 3, 1); in test_inet_pton()
608 ASSERT_READ_LABEL(&in4, sizeof(in4), i_label); in test_inet_pton()
622 dfsan_set_label(i_label, &t0, sizeof(t0)); in test_localtime_r()
626 ASSERT_LABEL(t1.tm_mon, i_label); in test_localtime_r()
634 dfsan_set_label(i_label, &pwd, 4); in test_getpwuid_r()
659 dfsan_set_label(i_label, &event, sizeof(event)); in test_epoll_wait()
665 ASSERT_READ_LABEL(&event, sizeof(event), i_label); in test_epoll_wait()
686 dfsan_set_label(i_label, &fd.revents, sizeof(fd.revents)); in test_poll()
697 dfsan_set_label(i_label, &fds, sizeof(fds)); in test_select()
732 dfsan_set_label(i_label, &tv, sizeof(tv)); in test_gettimeofday()
769 dfsan_set_label(i_label, &str1[7], 1); in test_strrchr()
776 ASSERT_LABEL(rv, i_label); in test_strrchr()
782 dfsan_set_label(i_label, &str1[3], 1); in test_strstr()
790 ASSERT_LABEL(rv, i_label); in test_strstr()
805 dfsan_set_label(i_label, &s[5], 1); in test_strpbrk()
838 dfsan_set_label(i_label, &str1[3], 1); in test_memchr()
850 ASSERT_LABEL(crv, i_label); in test_memchr()
870 dfsan_set_label(i_label, &rem, sizeof(rem)); in test_nanosleep()
876 ASSERT_READ_LABEL(&rem, 1, i_label); in test_nanosleep()
891 dfsan_set_label(i_label, fd, sizeof(fd)); in test_socketpair()
910 dfsan_set_label(i_label, &(buf[3]), 1); in test_write()
912 dfsan_set_label(i_label, &len, sizeof(len)); in test_write()
943 dfsan_set_label(i_label, &arg, sizeof(arg)); in test_sprintf_chunk()
947 ASSERT_READ_LABEL(buf + 4, strlen(padded_expected) - 8, i_label); in test_sprintf_chunk()
971 dfsan_set_label(i_label, &m, sizeof(m)); in test_sprintf()
981 ASSERT_READ_LABEL(buf + 18, 1, i_label); in test_sprintf()
1033 dfsan_set_label(i_label, &y, sizeof(y)); in test_snprintf()
1044 ASSERT_READ_LABEL(buf + 13, 4, i_label); in test_snprintf()
1051 i_label = 1; in main()
1055 i_label = dfsan_create_label("i", 0); in main()
1059 i_j_label = dfsan_union(i_label, j_label); in main()
1060 assert(i_j_label != i_label); in main()