/bionic/libc/upstream-openbsd/lib/libc/stdlib/ |
D | reallocarray.c | 33 nmemb > 0 && SIZE_MAX / nmemb < size) { in reallocarray()
|
/bionic/libc/malloc_debug/ |
D | Config.cpp | 207 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/ |
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() 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()
|
D | fortify_compilation_test.cpp | 288 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()
|
D | fcntl_test.cpp | 229 ssize_t bytes_teed = tee(pipe1[0], pipe2[1], SIZE_MAX, 0); in TEST()
|
D | wchar_test.cpp | 443 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()
|
D | stdlib_test.cpp | 182 ASSERT_NE(0, posix_memalign(&ptr, 16, SIZE_MAX)); in TEST()
|
D | string_test.cpp | 1501 ASSERT_EQ(4U, strnlen("test", SIZE_MAX)); in TEST()
|
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
D | fwrite.c | 59 size > 0 && SIZE_MAX / size < count) { in fwrite()
|
D | getdelim.c | 100 #if SIZE_MAX > 0xffffffffU in getdelim()
|
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/upstream-netbsd/lib/libc/stdlib/ |
D | reallocarr.c | 80 number > SIZE_MAX / size)) { in __weak_alias()
|
/bionic/libc/stdio/ |
D | fread.c | 50 size > 0 && SIZE_MAX / size < count) { in fread()
|
/bionic/libc/bionic/ |
D | wchar.cpp | 136 return mbsnrtowcs(dst, src, SIZE_MAX, len, ps); in mbsrtowcs() 211 return wcsnrtombs(dst, src, SIZE_MAX, len, ps); in wcsrtombs()
|
D | fortify.cpp | 438 dst_len_from_compiler == SIZE_MAX ? SSIZE_MAX : dst_len_from_compiler, in __vsprintf_chk()
|
/bionic/libc/include/ |
D | stdint.h | 219 # define SIZE_MAX UINT64_MAX macro 226 # define SIZE_MAX UINT32_MAX macro
|
/bionic/libc/malloc_debug/tests/ |
D | malloc_debug_config_tests.cpp | 364 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()
|
D | malloc_debug_unit_tests.cpp | 1326 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/ |
D | private.h | 288 #ifndef SIZE_MAX 289 #define SIZE_MAX ((size_t) -1) macro
|