Searched refs:SIZE_MAX (Results 1 – 11 of 11) sorted by relevance
/bionic/tests/ |
D | malloc_test.cpp | 37 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 …]
|
D | fcntl_test.cpp | 220 ssize_t bytes_teed = tee(pipe1[0], pipe2[1], SIZE_MAX, 0); in TEST()
|
D | wchar_test.cpp | 431 ASSERT_EQ(3U, mbsnrtowcs(dst, &src, SIZE_MAX, 3, NULL)); in TEST()
|
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
D | fwrite.c | 59 size > 0 && SIZE_MAX / size < count) { in fwrite()
|
D | fread.c | 54 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 | 376 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 | 782 if (n_elements && SIZE_MAX / n_elements < elem_size) { in qemu_instrumented_calloc()
|