Searched refs:SIZE_MAX (Results 1 - 21 of 21) sorted by relevance

/bionic/libc/upstream-openbsd/lib/libc/stdlib/
H A Dreallocarray.c24 * 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 Dreallocarr.c41 /* Old POSIX has SIZE_MAX in limits.h */
80 number > SIZE_MAX / size)) {
/bionic/libc/malloc_debug/
H A DConfig.cpp219 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 Dmalloc_test.cpp39 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 Dfortify_filecheck_diagnostics_test.cpp339 pwrite64(STDOUT_FILENO, buf, SIZE_MAX, 0);
347 pwrite64(STDOUT_FILENO, buf, SIZE_MAX, 0);
H A Dfcntl_test.cpp231 ssize_t bytes_teed = tee(pipe1[0], pipe2[1], SIZE_MAX, 0);
H A Dwchar_test.cpp516 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 Dstdlib_test.cpp234 ASSERT_NE(0, posix_memalign(&ptr, 16, SIZE_MAX));
263 ASSERT_TRUE(aligned_alloc(16, SIZE_MAX) == nullptr);
H A Dstring_test.cpp1501 ASSERT_EQ(4U, strnlen("test", SIZE_MAX));
/bionic/libc/upstream-openbsd/lib/libc/stdio/
H A Dgetdelim.c100 #if SIZE_MAX > 0xffffffffU
H A Dopen_memstream.c92 if (off > SIZE_MAX - base || off < -base) {
H A Dopen_wmemstream.c96 if (off > (SIZE_MAX / sizeof(wchar_t)) - base || off < -base) {
/bionic/tests/headers/posix/
H A Dstdint_h.c121 MACRO(SIZE_MAX);
/bionic/libc/bionic/
H A Dwchar.cpp136 return mbsnrtowcs(dst, src, SIZE_MAX, len, ps);
211 return wcsnrtombs(dst, src, SIZE_MAX, len, ps);
H A Dfortify.cpp425 // 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 Dstdint.h219 # define SIZE_MAX UINT64_MAX macro
226 # define SIZE_MAX UINT32_MAX macro
/bionic/tools/versioner/current/
H A Dstdint.h219 # define SIZE_MAX UINT64_MAX macro
226 # define SIZE_MAX UINT32_MAX macro
/bionic/libc/tzcode/
H A Dprivate.h288 #ifndef SIZE_MAX
289 #define SIZE_MAX ((size_t) -1) macro
/bionic/libc/malloc_debug/tests/
H A Dmalloc_debug_config_tests.cpp423 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 Dmalloc_debug_unit_tests.cpp1809 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 Dvfscanf.cpp419 if (width == 0) width = SIZE_MAX;

Completed in 276 milliseconds