Home
last modified time | relevance | path

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

/bionic/libc/upstream-openbsd/lib/libc/stdlib/
Dreallocarray.c33 nmemb > 0 && SIZE_MAX / nmemb < size) { in reallocarray()
/bionic/libc/malloc_debug/
DConfig.cpp207 fill_on_alloc_bytes_ = SIZE_MAX; in SetFill()
208 fill_on_free_bytes_ = SIZE_MAX; in SetFill()
212 if (!ParseValue(option, value, 1, SIZE_MAX, &fill_on_alloc_bytes_)) { in SetFill()
220 return ParseValue(option, value, SIZE_MAX, 1, SIZE_MAX, &fill_on_alloc_bytes_); in SetFillOnAlloc()
224 return ParseValue(option, value, SIZE_MAX, 1, SIZE_MAX, &fill_on_free_bytes_); in SetFillOnFree()
246 fill_on_free_bytes_ = SIZE_MAX; in SetFreeTrack()
/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()
278 ASSERT_EQ(NULL, realloc(NULL, SIZE_MAX)); in TEST()
283 ASSERT_EQ(NULL, realloc(ptr, SIZE_MAX)); in TEST()
302 ASSERT_EQ(NULL, pvalloc(SIZE_MAX)); in TEST()
314 ASSERT_EQ(NULL, valloc(SIZE_MAX)); in TEST()
Dfortify_compilation_test.cpp288 pwrite64(STDOUT_FILENO, buf, SIZE_MAX, 0); in test_pwrite64_too_big_malloc()
296 pwrite64(STDOUT_FILENO, buf, SIZE_MAX, 0); in test_pwrite64_too_big()
Dfcntl_test.cpp229 ssize_t bytes_teed = tee(pipe1[0], pipe2[1], SIZE_MAX, 0); in TEST()
Dwchar_test.cpp443 ASSERT_EQ(3U, mbsnrtowcs(dst, &src, SIZE_MAX, 3, NULL)); in TEST()
453 ASSERT_EQ(static_cast<size_t>(-1), mbsnrtowcs(dst, &src, SIZE_MAX, 3, nullptr)); in TEST()
458 ASSERT_EQ(static_cast<size_t>(-1), mbsnrtowcs(nullptr, &src, SIZE_MAX, 3, nullptr)); in TEST()
Dstdlib_test.cpp182 ASSERT_NE(0, posix_memalign(&ptr, 16, SIZE_MAX)); in TEST()
Dstring_test.cpp1501 ASSERT_EQ(4U, strnlen("test", SIZE_MAX)); in TEST()
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dfwrite.c59 size > 0 && SIZE_MAX / size < count) { in fwrite()
Dgetdelim.c100 #if SIZE_MAX > 0xffffffffU in getdelim()
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/upstream-netbsd/lib/libc/stdlib/
Dreallocarr.c80 number > SIZE_MAX / size)) { in __weak_alias()
/bionic/libc/stdio/
Dfread.c50 size > 0 && SIZE_MAX / size < count) { in fread()
/bionic/libc/bionic/
Dwchar.cpp136 return mbsnrtowcs(dst, src, SIZE_MAX, len, ps); in mbsrtowcs()
211 return wcsnrtombs(dst, src, SIZE_MAX, len, ps); in wcsrtombs()
Dfortify.cpp438 dst_len_from_compiler == SIZE_MAX ? SSIZE_MAX : dst_len_from_compiler, in __vsprintf_chk()
/bionic/libc/include/
Dstdint.h219 # define SIZE_MAX UINT64_MAX macro
226 # define SIZE_MAX UINT32_MAX macro
/bionic/libc/malloc_debug/tests/
Dmalloc_debug_config_tests.cpp364 ASSERT_EQ(SIZE_MAX, config->fill_on_alloc_bytes()); in TEST_F()
377 ASSERT_EQ(SIZE_MAX, config->fill_on_free_bytes()); in TEST_F()
391 ASSERT_EQ(SIZE_MAX, config->fill_on_alloc_bytes()); in TEST_F()
392 ASSERT_EQ(SIZE_MAX, config->fill_on_free_bytes()); in TEST_F()
415 ASSERT_EQ(SIZE_MAX, config->fill_on_free_bytes()); in TEST_F()
421 ASSERT_EQ(SIZE_MAX, config->fill_on_free_bytes()); in TEST_F()
Dmalloc_debug_unit_tests.cpp1326 void* pointer = debug_malloc(SIZE_MAX); in TEST_F()
1330 pointer = debug_calloc(1, SIZE_MAX); in TEST_F()
1334 pointer = debug_calloc(SIZE_MAX, 1); in TEST_F()
1338 pointer = debug_calloc(SIZE_MAX/100, 100); in TEST_F()
1342 pointer = debug_calloc(100, SIZE_MAX/100); in TEST_F()
1352 pointer = debug_realloc(nullptr, SIZE_MAX); in TEST_F()
1360 void* realloc_pointer = debug_realloc(pointer, SIZE_MAX); in TEST_F()
1503 ASSERT_EQ(ENOMEM, debug_posix_memalign(&pointer, 16, SIZE_MAX)); in TEST_F()
/bionic/libc/tzcode/
Dprivate.h288 #ifndef SIZE_MAX
289 #define SIZE_MAX ((size_t) -1) macro