Searched refs:SIZE_MAX (Results 1 – 14 of 14) sorted by relevance
/bionic/tests/ |
D | malloc_test.cpp | 39 ASSERT_EQ(NULL, malloc(SIZE_MAX)); in TEST() 63 ASSERT_EQ(NULL, calloc(1, SIZE_MAX)); in TEST() 66 ASSERT_EQ(NULL, calloc(SIZE_MAX, SIZE_MAX)); in TEST() 69 ASSERT_EQ(NULL, calloc(2, SIZE_MAX)); in TEST() 72 ASSERT_EQ(NULL, calloc(SIZE_MAX, 2)); in TEST() 91 ASSERT_EQ(NULL, memalign(4096, SIZE_MAX)); in TEST() 110 ASSERT_NE(0, posix_memalign(&ptr, 16, SIZE_MAX)); in TEST() 288 ASSERT_EQ(NULL, realloc(NULL, SIZE_MAX)); in TEST() 293 ASSERT_EQ(NULL, realloc(ptr, SIZE_MAX)); in TEST() 312 ASSERT_EQ(NULL, pvalloc(SIZE_MAX)); in TEST() [all …]
|
D | fcntl_test.cpp | 220 ssize_t bytes_teed = tee(pipe1[0], pipe2[1], SIZE_MAX, 0); in TEST()
|
D | wchar_test.cpp | 438 ASSERT_EQ(3U, mbsnrtowcs(dst, &src, SIZE_MAX, 3, NULL)); in TEST()
|
/bionic/libc/upstream-openbsd/lib/libc/stdlib/ |
D | reallocarray.c | 33 nmemb > 0 && SIZE_MAX / nmemb < size) { in reallocarray()
|
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
D | fwrite.c | 59 size > 0 && SIZE_MAX / size < count) { in fwrite()
|
D | open_memstream.c | 92 if (off > SIZE_MAX - base || off < -base) { in memstream_seek()
|
D | open_wmemstream.c | 96 if (off > (SIZE_MAX / sizeof(wchar_t)) - base || off < -base) { in wmemstream_seek()
|
/bionic/libc/stdio/ |
D | fread.c | 50 size > 0 && SIZE_MAX / size < count) { in fread()
|
/bionic/libc/include/ |
D | stdint.h | 218 # define SIZE_MAX UINT64_MAX macro 225 # define SIZE_MAX UINT32_MAX macro
|
/bionic/libc/tzcode/ |
D | private.h | 211 #ifndef SIZE_MAX 212 #define SIZE_MAX ((size_t) -1) macro
|
/bionic/libc/bionic/ |
D | wchar.cpp | 147 return mbsnrtowcs(dst, src, SIZE_MAX, len, ps); in mbsrtowcs() 222 return wcsnrtombs(dst, src, SIZE_MAX, len, ps); in wcsrtombs()
|
D | malloc_debug_leak.cpp | 367 if (n_elements && SIZE_MAX / n_elements < elem_size) { in leak_calloc()
|
D | malloc_debug_check.cpp | 532 if (size < total_bytes || (nmemb && SIZE_MAX / nmemb < bytes)) { // Overflow in chk_calloc()
|
D | malloc_debug_qemu.cpp | 783 if (n_elements && SIZE_MAX / n_elements < elem_size) { in qemu_instrumented_calloc()
|