Home
last modified time | relevance | path

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

/external/compiler-rt/lib/asan/tests/
Dasan_str_test.cc151 size_t from_size = Ident(6); // less than to_size in TEST() local
153 char *from = Ident((char*)malloc(from_size)); in TEST()
157 strcpy(to + to_size - from_size, from); in TEST()
163 EXPECT_DEATH(Ident(strcpy(to, from + from_size)), RightOOBReadMessage(0)); in TEST()
166 from[from_size - 1] = '!'; in TEST()
174 size_t from_size = Ident(6); // less than to_size in TEST() local
177 char *from = Ident((char*)malloc(from_size)); in TEST()
183 strncpy(to, from, from_size); in TEST()
185 strncpy(to, from + from_size - 1, to_size); in TEST()
188 EXPECT_DEATH(Ident(strncpy(to, from - 1, from_size)), in TEST()
[all …]
/external/compiler-rt/test/asan/TestCases/
Dstrcat_strict.c28 size_t from_size = 20; in main() local
29 char *from = (char*)malloc(from_size); in main()
30 memset(from, 'z', from_size); in main()
31 from[from_size - 1] = '\0'; in main()
Dstrncat_strict.c28 size_t from_size = 20; in main() local
29 char *from = (char*)malloc(from_size); in main()
30 memset(from, 'z', from_size); in main()
31 from[from_size - 1] = '\0'; in main()
/external/compiler-rt/lib/asan/
Dasan_interceptors.cc545 uptr from_size = REAL(strlen)(from) + 1; in INTERCEPTOR() local
546 CHECK_RANGES_OVERLAP("strcpy", to, from_size, from, from_size); in INTERCEPTOR()
547 ASAN_READ_RANGE(ctx, from, from_size); in INTERCEPTOR()
548 ASAN_WRITE_RANGE(ctx, to, from_size); in INTERCEPTOR()
601 uptr from_size = Min(size, MaybeRealStrnlen(from, size) + 1); in INTERCEPTOR() local
602 CHECK_RANGES_OVERLAP("strncpy", to, from_size, from, from_size); in INTERCEPTOR()
603 ASAN_READ_RANGE(ctx, from, from_size); in INTERCEPTOR()
/external/iproute2/include/
Dbpf_api.h190 static int BPF_FUNC(csum_diff, const void *from, uint32_t from_size,
/external/linux-kselftest/tools/testing/selftests/bpf/
Dbpf_helpers.h215 static int (*bpf_csum_diff)(void *from, int from_size, void *to, int to_size, int seed) =