/bionic/libc/upstream-openbsd/lib/libc/stdlib/ |
H A D | reallocarray.c | 24 * This is sqrt(SIZE_MAX+1), as s1*s2 <= SIZE_MAX 33 nmemb > 0 && SIZE_MAX / nmemb < size) {
|
/bionic/libc/upstream-netbsd/lib/libc/stdlib/ |
H A D | reallocarr.c | 41 /* Old POSIX has SIZE_MAX in limits.h */ 80 number > SIZE_MAX / size)) {
|
/bionic/libc/malloc_debug/ |
H A D | Config.cpp | 219 fill_on_alloc_bytes_ = SIZE_MAX; 220 fill_on_free_bytes_ = SIZE_MAX; 224 if (!ParseValue(option, value, 1, SIZE_MAX, &fill_on_alloc_bytes_)) { 232 return ParseValue(option, value, SIZE_MAX, 1, SIZE_MAX, &fill_on_alloc_bytes_); 236 return ParseValue(option, value, SIZE_MAX, 1, SIZE_MAX, &fill_on_free_bytes_); 275 fill_on_free_bytes_ = SIZE_MAX;
|
/bionic/tests/ |
H A D | malloc_test.cpp | 39 ASSERT_EQ(NULL, malloc(SIZE_MAX)); 63 ASSERT_EQ(NULL, calloc(1, SIZE_MAX)); 66 ASSERT_EQ(NULL, calloc(SIZE_MAX, SIZE_MAX)); 69 ASSERT_EQ(NULL, calloc(2, SIZE_MAX)); 72 ASSERT_EQ(NULL, calloc(SIZE_MAX, 2)); 91 ASSERT_EQ(NULL, memalign(4096, SIZE_MAX)); 278 ASSERT_EQ(NULL, realloc(NULL, SIZE_MAX)); 283 ASSERT_EQ(NULL, realloc(ptr, SIZE_MAX)); 302 ASSERT_EQ(NULL, pvalloc(SIZE_MAX)); [all...] |
H A D | fortify_filecheck_diagnostics_test.cpp | 339 pwrite64(STDOUT_FILENO, buf, SIZE_MAX, 0); 347 pwrite64(STDOUT_FILENO, buf, SIZE_MAX, 0);
|
H A D | fcntl_test.cpp | 231 ssize_t bytes_teed = tee(pipe1[0], pipe2[1], SIZE_MAX, 0);
|
H A D | wchar_test.cpp | 516 ASSERT_EQ(2U, mbsnrtowcs(dst, &src, 2, 123, NULL)); // glibc chokes on SIZE_MAX here. 523 ASSERT_EQ(3U, mbsnrtowcs(dst, &src, SIZE_MAX, 3, NULL)); 533 ASSERT_EQ(static_cast<size_t>(-1), mbsnrtowcs(dst, &src, SIZE_MAX, 3, nullptr)); 538 ASSERT_EQ(static_cast<size_t>(-1), mbsnrtowcs(nullptr, &src, SIZE_MAX, 3, nullptr));
|
H A D | stdlib_test.cpp | 234 ASSERT_NE(0, posix_memalign(&ptr, 16, SIZE_MAX)); 263 ASSERT_TRUE(aligned_alloc(16, SIZE_MAX) == nullptr);
|
H A D | string_test.cpp | 1501 ASSERT_EQ(4U, strnlen("test", SIZE_MAX));
|
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
H A D | getdelim.c | 100 #if SIZE_MAX > 0xffffffffU
|
H A D | open_memstream.c | 92 if (off > SIZE_MAX - base || off < -base) {
|
H A D | open_wmemstream.c | 96 if (off > (SIZE_MAX / sizeof(wchar_t)) - base || off < -base) {
|
/bionic/tests/headers/posix/ |
H A D | stdint_h.c | 121 MACRO(SIZE_MAX);
|
/bionic/libc/bionic/ |
H A D | wchar.cpp | 136 return mbsnrtowcs(dst, src, SIZE_MAX, len, ps); 211 return wcsnrtombs(dst, src, SIZE_MAX, len, ps);
|
H A D | fortify.cpp | 425 // The compiler uses SIZE_MAX to mean "no idea", but our vsnprintf rejects sizes that large. 427 dst_len_from_compiler == SIZE_MAX ? SSIZE_MAX : dst_len_from_compiler,
|
/bionic/libc/include/ |
H A D | stdint.h | 219 # define SIZE_MAX UINT64_MAX macro 226 # define SIZE_MAX UINT32_MAX macro
|
/bionic/tools/versioner/current/ |
H A D | stdint.h | 219 # define SIZE_MAX UINT64_MAX macro 226 # define SIZE_MAX UINT32_MAX macro
|
/bionic/libc/tzcode/ |
H A D | private.h | 288 #ifndef SIZE_MAX 289 #define SIZE_MAX ((size_t) -1) macro
|
/bionic/libc/malloc_debug/tests/ |
H A D | malloc_debug_config_tests.cpp | 423 ASSERT_EQ(SIZE_MAX, config->fill_on_alloc_bytes()); 436 ASSERT_EQ(SIZE_MAX, config->fill_on_free_bytes()); 450 ASSERT_EQ(SIZE_MAX, config->fill_on_alloc_bytes()); 451 ASSERT_EQ(SIZE_MAX, config->fill_on_free_bytes()); 474 ASSERT_EQ(SIZE_MAX, config->fill_on_free_bytes()); 480 ASSERT_EQ(SIZE_MAX, config->fill_on_free_bytes());
|
H A D | malloc_debug_unit_tests.cpp | 1809 void* pointer = debug_malloc(SIZE_MAX); 1813 pointer = debug_calloc(1, SIZE_MAX); 1817 pointer = debug_calloc(SIZE_MAX, 1); 1821 pointer = debug_calloc(SIZE_MAX/100, 100); 1825 pointer = debug_calloc(100, SIZE_MAX/100); 1835 pointer = debug_realloc(nullptr, SIZE_MAX); 1843 void* realloc_pointer = debug_realloc(pointer, SIZE_MAX); 1995 ASSERT_EQ(ENOMEM, debug_posix_memalign(&pointer, 16, SIZE_MAX));
|
/bionic/libc/stdio/ |
H A D | vfscanf.cpp | 419 if (width == 0) width = SIZE_MAX;
|