Home
last modified time | relevance | path

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

/bionic/libc/malloc_debug/
DConfig.cpp294 fill_on_alloc_bytes_ = SIZE_MAX; in SetFill()
295 fill_on_free_bytes_ = SIZE_MAX; in SetFill()
299 if (!ParseValue(option, value, 1, SIZE_MAX, &fill_on_alloc_bytes_)) { in SetFill()
307 return ParseValue(option, value, SIZE_MAX, 1, SIZE_MAX, &fill_on_alloc_bytes_); in SetFillOnAlloc()
311 return ParseValue(option, value, SIZE_MAX, 1, SIZE_MAX, &fill_on_free_bytes_); in SetFillOnFree()
344 if (!ParseValue(option, value, 1, SIZE_MAX, &backtrace_min_size_bytes_)) { in SetBacktraceSize()
353 return ParseValue(option, value, 1, SIZE_MAX, &backtrace_min_size_bytes_); in SetBacktraceMinSize()
357 return ParseValue(option, value, 1, SIZE_MAX, &backtrace_max_size_bytes_); in SetBacktraceMaxSize()
367 fill_on_free_bytes_ = SIZE_MAX; in SetFreeTrack()
467 backtrace_max_size_bytes_ = SIZE_MAX; in Init()
/bionic/libc/private/
Dbionic_elf_tls.h60 size_t offset_bionic_tcb_ = SIZE_MAX;
61 size_t offset_bionic_tls_ = SIZE_MAX;
104 size_t static_offset = SIZE_MAX;
/bionic/libc/upstream-openbsd/lib/libc/stdlib/
Drecallocarray.c40 newnmemb > 0 && SIZE_MAX / newnmemb < size) { in recallocarray()
47 oldnmemb > 0 && SIZE_MAX / oldnmemb < size) { in recallocarray()
/bionic/libc/bionic/
Dbionic_elf_tls.cpp53 __LIBC_HIDDEN__ _Atomic(size_t) __libc_tls_generation_copy = SIZE_MAX;
199 if (module.static_offset == SIZE_MAX) { in __init_static_tls()
273 if (mod.static_offset != SIZE_MAX) { in update_tls_dtv()
372 if (i < modules.module_count && modules.module_table[i].static_offset != SIZE_MAX) { in __free_dynamic_tls()
Dwchar.cpp136 return mbsnrtowcs(dst, src, SIZE_MAX, len, ps); in mbsrtowcs()
211 return wcsnrtombs(dst, src, SIZE_MAX, len, ps); in wcsrtombs()
Dfortify.cpp430 dst_len_from_compiler == SIZE_MAX ? SSIZE_MAX : dst_len_from_compiler, in __vsprintf_chk()
/bionic/linker/
Dlinker_tls.cpp91 CHECK(mod.static_offset == SIZE_MAX); in unregister_tls_module()
140 size_t static_offset = SIZE_MAX; in register_soinfo_tls()
Dlinker_relocate.cpp399 if (mod.static_offset != SIZE_MAX) { in process_relocation_impl()
456 if (mod.static_offset != SIZE_MAX) { in process_relocation_impl()
599 relocator.si_strtab_size = has_min_version(1) ? strtab_size_ : SIZE_MAX; in relocate()
Dlinker.cpp401 if (tls_mod.static_offset != SIZE_MAX) { in get_tls_block_for_this_thread()
/bionic/libc/upstream-netbsd/lib/libc/stdlib/
Dreallocarr.c80 number > SIZE_MAX / size)) { in __weak_alias()
/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.cpp386 ASSERT_EQ(SIZE_MAX, config->fill_on_alloc_bytes()); in TEST_F()
399 ASSERT_EQ(SIZE_MAX, config->fill_on_free_bytes()); in TEST_F()
413 ASSERT_EQ(SIZE_MAX, config->fill_on_alloc_bytes()); in TEST_F()
414 ASSERT_EQ(SIZE_MAX, config->fill_on_free_bytes()); in TEST_F()
437 ASSERT_EQ(SIZE_MAX, config->fill_on_free_bytes()); in TEST_F()
443 ASSERT_EQ(SIZE_MAX, config->fill_on_free_bytes()); in TEST_F()
857 ASSERT_EQ(SIZE_MAX, config->backtrace_max_size_bytes()); in TEST_F()
862 ASSERT_EQ(SIZE_MAX, config->backtrace_max_size_bytes()); in TEST_F()
Dmalloc_debug_unit_tests.cpp1974 void* pointer = debug_malloc(SIZE_MAX); in TEST_F()
1978 pointer = debug_calloc(1, SIZE_MAX); in TEST_F()
1982 pointer = debug_calloc(SIZE_MAX, 1); in TEST_F()
1986 pointer = debug_calloc(SIZE_MAX/100, 100); in TEST_F()
1990 pointer = debug_calloc(100, SIZE_MAX/100); in TEST_F()
2000 pointer = debug_realloc(nullptr, SIZE_MAX); in TEST_F()
2008 void* realloc_pointer = debug_realloc(pointer, SIZE_MAX); in TEST_F()
2158 ASSERT_EQ(ENOMEM, debug_posix_memalign(&pointer, 16, SIZE_MAX)); in TEST_F()
/bionic/tests/
Dmalloc_test.cpp85 ASSERT_EQ(nullptr, malloc(SIZE_MAX)); in TEST()
129 ASSERT_EQ(nullptr, calloc(1, SIZE_MAX)); in TEST()
132 ASSERT_EQ(nullptr, calloc(SIZE_MAX, SIZE_MAX)); in TEST()
135 ASSERT_EQ(nullptr, calloc(2, SIZE_MAX)); in TEST()
138 ASSERT_EQ(nullptr, calloc(SIZE_MAX, 2)); in TEST()
159 ASSERT_EQ(nullptr, memalign(4096, SIZE_MAX)); in TEST()
348 ASSERT_EQ(nullptr, realloc(nullptr, SIZE_MAX)); in TEST()
353 ASSERT_EQ(nullptr, realloc(ptr, SIZE_MAX)); in TEST()
378 ASSERT_EQ(nullptr, pvalloc(SIZE_MAX)); in TEST()
398 ASSERT_EQ(nullptr, valloc(SIZE_MAX)); in TEST()
Dfcntl_test.cpp247 ssize_t bytes_teed = tee(pipe1[0], pipe2[1], SIZE_MAX, 0); in TEST()
Dwchar_test.cpp555 ASSERT_EQ(3U, mbsnrtowcs(dst, &src, SIZE_MAX, 3, nullptr)); in TEST()
565 ASSERT_EQ(static_cast<size_t>(-1), mbsnrtowcs(dst, &src, SIZE_MAX, 3, nullptr)); in TEST()
570 ASSERT_EQ(static_cast<size_t>(-1), mbsnrtowcs(nullptr, &src, SIZE_MAX, 3, nullptr)); in TEST()
Dstdlib_test.cpp269 ASSERT_NE(0, posix_memalign(&ptr, 16, SIZE_MAX)); in TEST()
295 ASSERT_TRUE(aligned_alloc(16, SIZE_MAX) == nullptr); in TEST()
Dstring_test.cpp1517 ASSERT_EQ(4U, strnlen("test", SIZE_MAX)); in TEST()
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dgetdelim.c100 #if SIZE_MAX > 0xffffffffU in getdelim()
Dopen_memstream.c92 if ((off > 0 && off > SIZE_MAX - base) || (off < 0 && base < -off)) { in memstream_seek()
Dopen_wmemstream.c96 if (off > (SIZE_MAX / sizeof(wchar_t)) - base || off < -base) { in wmemstream_seek()
/bionic/tests/headers/posix/
Dstdint_h.c121 MACRO(SIZE_MAX); in stdint_h()
/bionic/libc/tzcode/
Dprivate.h367 #ifndef SIZE_MAX
368 #define SIZE_MAX ((size_t) -1) macro
/bionic/libc/stdio/
Dvfscanf.cpp424 if (width == 0) width = SIZE_MAX; in __svfscanf()