Home
last modified time | relevance | path

Searched refs:from_size (Results 1 – 3 of 3) sorted by relevance

/NextBSD/contrib/compiler-rt/lib/asan/tests/
HDasan_str_test.cc121 size_t from_size = Ident(6); // less than to_size in TEST() local
123 char *from = Ident((char*)malloc(from_size)); in TEST()
127 strcpy(to + to_size - from_size, from); in TEST()
133 EXPECT_DEATH(Ident(strcpy(to, from + from_size)), RightOOBReadMessage(0)); in TEST()
136 from[from_size - 1] = '!'; in TEST()
144 size_t from_size = Ident(6); // less than to_size in TEST() local
147 char *from = Ident((char*)malloc(from_size)); in TEST()
153 strncpy(to, from, from_size); in TEST()
155 strncpy(to, from + from_size - 1, to_size); in TEST()
158 EXPECT_DEATH(Ident(strncpy(to, from - 1, from_size)), in TEST()
[all …]
/NextBSD/contrib/compiler-rt/lib/asan/
HDasan_interceptors.cc572 uptr from_size = REAL(strlen)(from) + 1; in INTERCEPTOR() local
573 CHECK_RANGES_OVERLAP("strcpy", to, from_size, from, from_size); in INTERCEPTOR()
574 ASAN_READ_RANGE(ctx, from, from_size); in INTERCEPTOR()
575 ASAN_WRITE_RANGE(ctx, to, from_size); in INTERCEPTOR()
630 uptr from_size = Min(size, MaybeRealStrnlen(from, size) + 1); in INTERCEPTOR() local
631 CHECK_RANGES_OVERLAP("strncpy", to, from_size, from, from_size); in INTERCEPTOR()
632 ASAN_READ_RANGE(ctx, from, from_size); in INTERCEPTOR()
/NextBSD/contrib/libarchive/libarchive/
HDarchive_string.c2006 int to_size, from_size; in iconv_strncat_in_locale() local
2013 from_size = 2; in iconv_strncat_in_locale()
2015 from_size = 1; in iconv_strncat_in_locale()
2025 while (remaining >= (size_t)from_size) { in iconv_strncat_in_locale()
2068 itp += from_size; in iconv_strncat_in_locale()
2069 remaining -= from_size; in iconv_strncat_in_locale()