Home
last modified time | relevance | path

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

/bionic/tests/
Dmalloc_test.cpp39 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 …]
Dfcntl_test.cpp220 ssize_t bytes_teed = tee(pipe1[0], pipe2[1], SIZE_MAX, 0); in TEST()
Dwchar_test.cpp438 ASSERT_EQ(3U, mbsnrtowcs(dst, &src, SIZE_MAX, 3, NULL)); in TEST()
/bionic/libc/upstream-openbsd/lib/libc/stdlib/
Dreallocarray.c33 nmemb > 0 && SIZE_MAX / nmemb < size) { in reallocarray()
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dfwrite.c59 size > 0 && SIZE_MAX / size < count) { in fwrite()
Dopen_memstream.c92 if (off > SIZE_MAX - base || off < -base) { in memstream_seek()
Dopen_wmemstream.c96 if (off > (SIZE_MAX / sizeof(wchar_t)) - base || off < -base) { in wmemstream_seek()
/bionic/libc/stdio/
Dfread.c50 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.cpp367 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.cpp783 if (n_elements && SIZE_MAX / n_elements < elem_size) { in qemu_instrumented_calloc()