Lines Matching refs:i_label
31 dfsan_label i_label = 0; variable
50 dfsan_set_label(i_label, &i, sizeof(i)); in test_stat()
59 ASSERT_LABEL(s.st_dev, i_label); in test_stat()
64 dfsan_set_label(i_label, &i, sizeof(i)); in test_fstat()
76 dfsan_set_label(i_label, &str1[3], 1); in test_memcmp()
91 dfsan_set_label(i_label, &str1[3], 1); in test_memcpy()
96 ASSERT_LABEL(str2[3], i_label); in test_memcpy()
113 dfsan_set_label(i_label, &str1[3], 1); in test_strcmp()
127 dfsan_set_label(i_label, &str1[3], 1); in test_strlen()
134 ASSERT_LABEL(rv, i_label); in test_strlen()
140 dfsan_set_label(i_label, &str1[3], 1); in test_strdup()
144 ASSERT_LABEL(strd[3], i_label); in test_strdup()
151 dfsan_set_label(i_label, &str1[3], 1); in test_strncpy()
160 ASSERT_LABEL(strd[3], i_label); in test_strncpy()
173 dfsan_set_label(i_label, &str1[3], 1); in test_strncmp()
181 ASSERT_LABEL(rv, dfsan_union(i_label, j_label)); in test_strncmp()
191 dfsan_set_label(i_label, &str1[3], 1); in test_strcasecmp()
200 ASSERT_LABEL(rv, dfsan_union(i_label, j_label)); in test_strcasecmp()
208 ASSERT_LABEL(rv, dfsan_union(i_label, j_label)); in test_strcasecmp()
214 dfsan_set_label(i_label, &str1[3], 1); in test_strncasecmp()
222 ASSERT_LABEL(rv, dfsan_union(i_label, j_label)); in test_strncasecmp()
232 dfsan_set_label(i_label, &str1[3], 1); in test_strchr()
243 ASSERT_LABEL(crv, i_label); in test_strchr()
251 ASSERT_LABEL(crv, i_label); in test_strchr()
261 dfsan_set_label(i_label, crv, 100); in test_calloc()
271 dfsan_set_label(i_label, buf, 1); in test_read()
274 ASSERT_LABEL(buf[0], i_label); in test_read()
288 dfsan_set_label(i_label, buf, 1); in test_pread()
291 ASSERT_LABEL(buf[0], i_label); in test_pread()
331 dfsan_set_label(i_label, &t, sizeof(t)); in test_ctime_r()
334 ASSERT_READ_LABEL(buf, strlen(buf) + 1, i_label); in test_ctime_r()
376 dfsan_set_label(i_label, &fd, sizeof(fd)); in test_dfsan_set_write_callback()
383 ASSERT_READ_LABEL(&last_fd, sizeof(last_fd), i_label); in test_dfsan_set_write_callback()
408 dfsan_set_label(i_label, buf + 2, 2); in test_getcwd()
413 dfsan_set_label(i_label, &ptr, sizeof(ptr)); in test_getcwd()
415 ASSERT_LABEL(ret, i_label); in test_getcwd()
427 dfsan_set_label(i_label, buf + 2, 2); in test_gethostname()
434 dfsan_set_label(i_label, &rlim, sizeof(rlim)); in test_getrlimit()
441 dfsan_set_label(i_label, &usage, sizeof(usage)); in test_getrusage()
451 dfsan_set_label(i_label, src + 2, 1); in test_strcpy()
454 dfsan_set_label(i_label, dst + 12, 1); in test_strcpy()
465 ASSERT_LABEL(dst[12], i_label); in test_strcpy()
471 dfsan_set_label(i_label, buf + 1, 1); in test_strtol()
482 dfsan_set_label(i_label, buf + 1, 1); in test_strtoll()
493 dfsan_set_label(i_label, buf + 1, 1); in test_strtoul()
504 dfsan_set_label(i_label, buf + 1, 1); in test_strtoull()
515 dfsan_set_label(i_label, buf + 1, 1); in test_strtod()
525 dfsan_set_label(i_label, &t, 1); in test_time()
534 dfsan_set_label(i_label, addr4 + 3, 1); in test_inet_pton()
538 ASSERT_READ_LABEL(&in4, sizeof(in4), i_label); in test_inet_pton()
552 dfsan_set_label(i_label, &t0, sizeof(t0)); in test_localtime_r()
556 ASSERT_LABEL(t1.tm_mon, i_label); in test_localtime_r()
564 dfsan_set_label(i_label, &pwd, 4); in test_getpwuid_r()
576 dfsan_set_label(i_label, &fd.revents, sizeof(fd.revents)); in test_poll()
587 dfsan_set_label(i_label, &fds, sizeof(fds)); in test_select()
622 dfsan_set_label(i_label, &tv, sizeof(tv)); in test_gettimeofday()
659 dfsan_set_label(i_label, &str1[7], 1); in test_strrchr()
666 ASSERT_LABEL(rv, i_label); in test_strrchr()
672 dfsan_set_label(i_label, &str1[3], 1); in test_strstr()
680 ASSERT_LABEL(rv, i_label); in test_strstr()
694 dfsan_set_label(i_label, &str1[3], 1); in test_memchr()
706 ASSERT_LABEL(crv, i_label); in test_memchr()
726 dfsan_set_label(i_label, &rem, sizeof(rem)); in test_nanosleep()
732 ASSERT_READ_LABEL(&rem, 1, i_label); in test_nanosleep()
747 dfsan_set_label(i_label, fd, sizeof(fd)); in test_socketpair()
766 dfsan_set_label(i_label, &(buf[3]), 1); in test_write()
768 dfsan_set_label(i_label, &len, sizeof(len)); in test_write()
799 dfsan_set_label(i_label, &arg, sizeof(arg)); in test_sprintf_chunk()
803 ASSERT_READ_LABEL(buf + 4, strlen(padded_expected) - 8, i_label); in test_sprintf_chunk()
827 dfsan_set_label(i_label, &m, sizeof(m)); in test_sprintf()
837 ASSERT_READ_LABEL(buf + 18, 1, i_label); in test_sprintf()
889 dfsan_set_label(i_label, &y, sizeof(y)); in test_snprintf()
900 ASSERT_READ_LABEL(buf + 13, 4, i_label); in test_snprintf()
906 i_label = dfsan_create_label("i", 0); in main()
909 i_j_label = dfsan_union(i_label, j_label); in main()