Home
last modified time | relevance | path

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

/bionic/libc/malloc_debug/
DConfig.cpp228 fill_on_alloc_bytes_ = SIZE_MAX; in SetFill()
229 fill_on_free_bytes_ = SIZE_MAX; in SetFill()
233 if (!ParseValue(option, value, 1, SIZE_MAX, &fill_on_alloc_bytes_)) { in SetFill()
241 return ParseValue(option, value, SIZE_MAX, 1, SIZE_MAX, &fill_on_alloc_bytes_); in SetFillOnAlloc()
245 return ParseValue(option, value, SIZE_MAX, 1, SIZE_MAX, &fill_on_free_bytes_); in SetFillOnFree()
284 fill_on_free_bytes_ = SIZE_MAX; in SetFreeTrack()
/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.cpp52 __LIBC_HIDDEN__ _Atomic(size_t) __libc_tls_generation_copy = SIZE_MAX;
189 if (module.static_offset == SIZE_MAX) { in __init_static_tls()
263 if (mod.static_offset != SIZE_MAX) { in update_tls_dtv()
350 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.cpp433 dst_len_from_compiler == SIZE_MAX ? SSIZE_MAX : dst_len_from_compiler, in __vsprintf_chk()
/bionic/tests/
Dmalloc_test.cpp71 ASSERT_EQ(nullptr, malloc(SIZE_MAX)); in TEST()
97 ASSERT_EQ(nullptr, calloc(1, SIZE_MAX)); in TEST()
100 ASSERT_EQ(nullptr, calloc(SIZE_MAX, SIZE_MAX)); in TEST()
103 ASSERT_EQ(nullptr, calloc(2, SIZE_MAX)); in TEST()
106 ASSERT_EQ(nullptr, calloc(SIZE_MAX, 2)); in TEST()
127 ASSERT_EQ(nullptr, memalign(4096, SIZE_MAX)); in TEST()
316 ASSERT_EQ(nullptr, realloc(nullptr, SIZE_MAX)); in TEST()
321 ASSERT_EQ(nullptr, realloc(ptr, SIZE_MAX)); in TEST()
346 ASSERT_EQ(nullptr, pvalloc(SIZE_MAX)); in TEST()
366 ASSERT_EQ(nullptr, valloc(SIZE_MAX)); in TEST()
Dwchar_test.cpp545 ASSERT_EQ(3U, mbsnrtowcs(dst, &src, SIZE_MAX, 3, nullptr)); in TEST()
555 ASSERT_EQ(static_cast<size_t>(-1), mbsnrtowcs(dst, &src, SIZE_MAX, 3, nullptr)); in TEST()
560 ASSERT_EQ(static_cast<size_t>(-1), mbsnrtowcs(nullptr, &src, SIZE_MAX, 3, nullptr)); in TEST()
Dfcntl_test.cpp242 ssize_t bytes_teed = tee(pipe1[0], pipe2[1], SIZE_MAX, 0); in TEST()
Dstdlib_test.cpp267 ASSERT_NE(0, posix_memalign(&ptr, 16, SIZE_MAX)); in TEST()
293 ASSERT_TRUE(aligned_alloc(16, SIZE_MAX) == nullptr); in TEST()
Dstring_test.cpp1501 ASSERT_EQ(4U, strnlen("test", SIZE_MAX)); in TEST()
/bionic/linker/
Dlinker_tls.cpp91 CHECK(mod.static_offset == SIZE_MAX); in unregister_tls_module()
138 size_t static_offset = SIZE_MAX; in register_soinfo_tls()
Dlinker_relocate.cpp384 if (mod.static_offset != SIZE_MAX) { in process_relocation_impl()
441 if (mod.static_offset != SIZE_MAX) { in process_relocation_impl()
584 relocator.si_strtab_size = has_min_version(1) ? strtab_size_ : SIZE_MAX; in relocate()
Dlinker.cpp369 if (tls_mod.static_offset != SIZE_MAX) { in get_tls_block_for_this_thread()
/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.cpp343 ASSERT_EQ(SIZE_MAX, config->fill_on_alloc_bytes()); in TEST_F()
356 ASSERT_EQ(SIZE_MAX, config->fill_on_free_bytes()); in TEST_F()
370 ASSERT_EQ(SIZE_MAX, config->fill_on_alloc_bytes()); in TEST_F()
371 ASSERT_EQ(SIZE_MAX, config->fill_on_free_bytes()); in TEST_F()
394 ASSERT_EQ(SIZE_MAX, config->fill_on_free_bytes()); in TEST_F()
400 ASSERT_EQ(SIZE_MAX, config->fill_on_free_bytes()); in TEST_F()
Dmalloc_debug_unit_tests.cpp1918 void* pointer = debug_malloc(SIZE_MAX); in TEST_F()
1922 pointer = debug_calloc(1, SIZE_MAX); in TEST_F()
1926 pointer = debug_calloc(SIZE_MAX, 1); in TEST_F()
1930 pointer = debug_calloc(SIZE_MAX/100, 100); in TEST_F()
1934 pointer = debug_calloc(100, SIZE_MAX/100); in TEST_F()
1944 pointer = debug_realloc(nullptr, SIZE_MAX); in TEST_F()
1952 void* realloc_pointer = debug_realloc(pointer, SIZE_MAX); in TEST_F()
2101 ASSERT_EQ(ENOMEM, debug_posix_memalign(&pointer, 16, SIZE_MAX)); in TEST_F()
/bionic/libc/upstream-netbsd/lib/libc/stdlib/
Dreallocarr.c80 number > SIZE_MAX / size)) { in __weak_alias()
/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/libc/tzcode/
Dprivate.h288 #ifndef SIZE_MAX
289 #define SIZE_MAX ((size_t) -1) macro
/bionic/tests/headers/posix/
Dstdint_h.c121 MACRO(SIZE_MAX); in stdint_h()
/bionic/libc/stdio/
Dvfscanf.cpp420 if (width == 0) width = SIZE_MAX; in __svfscanf()