Home
last modified time | relevance | path

Searched refs:SIZE_MAX (Results 1 – 11 of 11) sorted by relevance

/bionic/tests/
Dmalloc_test.cpp37 ASSERT_EQ(NULL, malloc(SIZE_MAX)); in TEST()
61 ASSERT_EQ(NULL, calloc(1, SIZE_MAX)); in TEST()
64 ASSERT_EQ(NULL, calloc(SIZE_MAX, SIZE_MAX)); in TEST()
67 ASSERT_EQ(NULL, calloc(2, SIZE_MAX)); in TEST()
70 ASSERT_EQ(NULL, calloc(SIZE_MAX, 2)); in TEST()
89 ASSERT_EQ(NULL, memalign(4096, SIZE_MAX)); in TEST()
108 ASSERT_NE(0, posix_memalign(&ptr, 16, SIZE_MAX)); in TEST()
286 ASSERT_EQ(NULL, realloc(NULL, SIZE_MAX)); in TEST()
291 ASSERT_EQ(NULL, realloc(ptr, SIZE_MAX)); in TEST()
310 ASSERT_EQ(NULL, pvalloc(SIZE_MAX)); in TEST()
[all …]
Dfcntl_test.cpp220 ssize_t bytes_teed = tee(pipe1[0], pipe2[1], SIZE_MAX, 0); in TEST()
Dwchar_test.cpp431 ASSERT_EQ(3U, mbsnrtowcs(dst, &src, SIZE_MAX, 3, NULL)); in TEST()
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dfwrite.c59 size > 0 && SIZE_MAX / size < count) { in fwrite()
Dfread.c54 size > 0 && SIZE_MAX / size < count) { in fread()
/bionic/libc/include/
Dstdint.h218 # define SIZE_MAX UINT64_MAX macro
225 # define SIZE_MAX UINT32_MAX macro
/bionic/libc/tzcode/
Dprivate.h211 #ifndef SIZE_MAX
212 #define SIZE_MAX ((size_t) -1) macro
/bionic/libc/bionic/
Dwchar.cpp147 return mbsnrtowcs(dst, src, SIZE_MAX, len, ps); in mbsrtowcs()
222 return wcsnrtombs(dst, src, SIZE_MAX, len, ps); in wcsrtombs()
Dmalloc_debug_leak.cpp376 if (n_elements && SIZE_MAX / n_elements < elem_size) { in leak_calloc()
Dmalloc_debug_check.cpp532 if (size < total_bytes || (nmemb && SIZE_MAX / nmemb < bytes)) { // Overflow in chk_calloc()
Dmalloc_debug_qemu.cpp782 if (n_elements && SIZE_MAX / n_elements < elem_size) { in qemu_instrumented_calloc()