Home
last modified time | relevance | path

Searched refs:from_size (Results 1 – 17 of 17) 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/llvm-project/compiler-rt/lib/asan/tests/
Dasan_str_test.cpp189 size_t from_size = Ident(6); // less than to_size in TEST() local
191 char *from = Ident((char*)malloc(from_size)); in TEST()
195 strcpy(to + to_size - from_size, from); in TEST()
201 EXPECT_DEATH(Ident(strcpy(to, from + from_size)), RightOOBReadMessage(0)); in TEST()
204 from[from_size - 1] = '!'; in TEST()
212 size_t from_size = Ident(6); // less than to_size in TEST() local
215 char *from = Ident((char*)malloc(from_size)); in TEST()
221 strncpy(to, from, from_size); in TEST()
223 strncpy(to, from + from_size - 1, to_size); in TEST()
226 EXPECT_DEATH(Ident(strncpy(to, from - 1, from_size)), in TEST()
[all …]
/external/compiler-rt/test/asan/TestCases/
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()
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()
/external/llvm-project/compiler-rt/test/asan/TestCases/
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()
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()
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/container/
Dinlined_vector_exception_safety_test.cc231 constexpr static auto from_size = TypeParam::GetSizeAt(0); in TYPED_TEST() local
235 .WithInitialValue(VecT{from_size}) in TYPED_TEST()
270 constexpr static auto from_size = TypeParam::GetSizeAt(0); in TYPED_TEST() local
274 .WithInitialValue(VecT{from_size}) in TYPED_TEST()
290 constexpr static auto from_size = TypeParam::GetSizeAt(0); in TYPED_TEST() local
293 .WithInitialValue(VecT{from_size}) in TYPED_TEST()
313 constexpr static auto from_size = TypeParam::GetSizeAt(0); in TYPED_TEST() local
317 .WithInitialValue(VecT{from_size}) in TYPED_TEST()
462 constexpr static auto from_size = TypeParam::GetSizeAt(0); in TYPED_TEST() local
466 .WithInitialValue(VecT{from_size}) in TYPED_TEST()
[all …]
/external/openscreen/third_party/abseil/src/absl/container/
Dinlined_vector_exception_safety_test.cc231 constexpr static auto from_size = TypeParam::GetSizeAt(0); in TYPED_TEST() local
235 .WithInitialValue(VecT{from_size}) in TYPED_TEST()
270 constexpr static auto from_size = TypeParam::GetSizeAt(0); in TYPED_TEST() local
274 .WithInitialValue(VecT{from_size}) in TYPED_TEST()
290 constexpr static auto from_size = TypeParam::GetSizeAt(0); in TYPED_TEST() local
293 .WithInitialValue(VecT{from_size}) in TYPED_TEST()
313 constexpr static auto from_size = TypeParam::GetSizeAt(0); in TYPED_TEST() local
317 .WithInitialValue(VecT{from_size}) in TYPED_TEST()
462 constexpr static auto from_size = TypeParam::GetSizeAt(0); in TYPED_TEST() local
466 .WithInitialValue(VecT{from_size}) in TYPED_TEST()
[all …]
/external/angle/third_party/abseil-cpp/absl/container/
Dinlined_vector_exception_safety_test.cc231 constexpr static auto from_size = TypeParam::GetSizeAt(0); in TYPED_TEST() local
235 .WithInitialValue(VecT{from_size}) in TYPED_TEST()
270 constexpr static auto from_size = TypeParam::GetSizeAt(0); in TYPED_TEST() local
274 .WithInitialValue(VecT{from_size}) in TYPED_TEST()
290 constexpr static auto from_size = TypeParam::GetSizeAt(0); in TYPED_TEST() local
293 .WithInitialValue(VecT{from_size}) in TYPED_TEST()
313 constexpr static auto from_size = TypeParam::GetSizeAt(0); in TYPED_TEST() local
317 .WithInitialValue(VecT{from_size}) in TYPED_TEST()
462 constexpr static auto from_size = TypeParam::GetSizeAt(0); in TYPED_TEST() local
466 .WithInitialValue(VecT{from_size}) in TYPED_TEST()
[all …]
/external/libtextclassifier/abseil-cpp/absl/container/
Dinlined_vector_exception_safety_test.cc231 constexpr static auto from_size = TypeParam::GetSizeAt(0); in TYPED_TEST() local
235 .WithInitialValue(VecT{from_size}) in TYPED_TEST()
270 constexpr static auto from_size = TypeParam::GetSizeAt(0); in TYPED_TEST() local
274 .WithInitialValue(VecT{from_size}) in TYPED_TEST()
290 constexpr static auto from_size = TypeParam::GetSizeAt(0); in TYPED_TEST() local
293 .WithInitialValue(VecT{from_size}) in TYPED_TEST()
313 constexpr static auto from_size = TypeParam::GetSizeAt(0); in TYPED_TEST() local
317 .WithInitialValue(VecT{from_size}) in TYPED_TEST()
462 constexpr static auto from_size = TypeParam::GetSizeAt(0); in TYPED_TEST() local
466 .WithInitialValue(VecT{from_size}) in TYPED_TEST()
[all …]
/external/abseil-cpp/absl/container/
Dinlined_vector_exception_safety_test.cc231 constexpr static auto from_size = TypeParam::GetSizeAt(0); in TYPED_TEST() local
235 .WithInitialValue(VecT{from_size}) in TYPED_TEST()
270 constexpr static auto from_size = TypeParam::GetSizeAt(0); in TYPED_TEST() local
274 .WithInitialValue(VecT{from_size}) in TYPED_TEST()
290 constexpr static auto from_size = TypeParam::GetSizeAt(0); in TYPED_TEST() local
293 .WithInitialValue(VecT{from_size}) in TYPED_TEST()
313 constexpr static auto from_size = TypeParam::GetSizeAt(0); in TYPED_TEST() local
317 .WithInitialValue(VecT{from_size}) in TYPED_TEST()
462 constexpr static auto from_size = TypeParam::GetSizeAt(0); in TYPED_TEST() local
466 .WithInitialValue(VecT{from_size}) in TYPED_TEST()
[all …]
/external/webrtc/third_party/abseil-cpp/absl/container/
Dinlined_vector_exception_safety_test.cc231 constexpr static auto from_size = TypeParam::GetSizeAt(0); in TYPED_TEST() local
235 .WithInitialValue(VecT{from_size}) in TYPED_TEST()
270 constexpr static auto from_size = TypeParam::GetSizeAt(0); in TYPED_TEST() local
274 .WithInitialValue(VecT{from_size}) in TYPED_TEST()
290 constexpr static auto from_size = TypeParam::GetSizeAt(0); in TYPED_TEST() local
293 .WithInitialValue(VecT{from_size}) in TYPED_TEST()
313 constexpr static auto from_size = TypeParam::GetSizeAt(0); in TYPED_TEST() local
317 .WithInitialValue(VecT{from_size}) in TYPED_TEST()
462 constexpr static auto from_size = TypeParam::GetSizeAt(0); in TYPED_TEST() local
466 .WithInitialValue(VecT{from_size}) in TYPED_TEST()
[all …]
/external/llvm-project/compiler-rt/lib/asan/
Dasan_interceptors.cpp435 uptr from_size = REAL(strlen)(from) + 1; in INTERCEPTOR() local
436 CHECK_RANGES_OVERLAP("strcpy", to, from_size, from, from_size); in INTERCEPTOR()
437 ASAN_READ_RANGE(ctx, from, from_size); in INTERCEPTOR()
438 ASAN_WRITE_RANGE(ctx, to, from_size); in INTERCEPTOR()
480 uptr from_size = Min(size, MaybeRealStrnlen(from, size) + 1); in INTERCEPTOR() local
481 CHECK_RANGES_OVERLAP("strncpy", to, from_size, from, from_size); in INTERCEPTOR()
482 ASAN_READ_RANGE(ctx, from, from_size); in INTERCEPTOR()
/external/llvm-project/compiler-rt/lib/memprof/
Dmemprof_interceptors.cpp233 uptr from_size = REAL(strlen)(from) + 1; in INTERCEPTOR() local
234 MEMPROF_READ_RANGE(from, from_size); in INTERCEPTOR()
235 MEMPROF_WRITE_RANGE(to, from_size); in INTERCEPTOR()
271 uptr from_size = Min(size, MaybeRealStrnlen(from, size) + 1); in INTERCEPTOR() local
272 MEMPROF_READ_RANGE(from, from_size); in INTERCEPTOR()
/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/mesa3d/src/panfrost/bifrost/test/
Dbi_test_pack.c454 bit_convert_helper(struct panfrost_device *dev, unsigned from_size, in bit_convert_helper() argument
470 if ((from_size == to_size) && (from_base == to_base)) in bit_convert_helper()
478 if (from_size != to_size && from_base == 0 && to_base) in bit_convert_helper()
481 if (from_size != to_size && from_base && to_base == 0) in bit_convert_helper()
485 if (from_size > to_size && from_base == to_base && from_base) in bit_convert_helper()
489 ins.src_types[0] = Ts[from_base] | from_size; in bit_convert_helper()
494 if (to_size == 16 && from_size == 32) { in bit_convert_helper()
/external/iproute2/include/
Dbpf_api.h190 static int BPF_FUNC(csum_diff, const void *from, uint32_t from_size,