/system/libvintf/include/vintf/ |
Level.h | 38 UNSPECIFIED = SIZE_MAX,
|
/external/e2fsprogs/intl/ |
xsize.h | 26 /* Get SIZE_MAX. */ 39 The convention is that SIZE_MAX represents overflow. 40 malloc (SIZE_MAX) is not guaranteed to fail -- think of a malloc 50 ((N) <= SIZE_MAX ? (size_t) (N) : SIZE_MAX) 60 return (sum >= size1 ? sum : SIZE_MAX); 91 max (SIZE_MAX, n) == SIZE_MAX and max (n, SIZE_MAX) == SIZE_MAX. * [all...] |
/external/clang/test/Headers/ |
cxx11.cpp | 24 #ifndef SIZE_MAX 25 #error SIZE_MAX should be defined in C++
|
/system/core/libutils/ |
SharedBufferTest.cpp | 27 EXPECT_DEATH(android::SharedBuffer::alloc(SIZE_MAX), ""); 28 EXPECT_DEATH(android::SharedBuffer::alloc(SIZE_MAX - sizeof(android::SharedBuffer)), ""); 33 android::SharedBuffer::alloc(SIZE_MAX - sizeof(android::SharedBuffer) - 1); 44 EXPECT_DEATH(buf->editResize(SIZE_MAX - sizeof(android::SharedBuffer)), ""); 46 EXPECT_DEATH(buf->editResize(SIZE_MAX), ""); 51 buf = buf->editResize(SIZE_MAX - sizeof(android::SharedBuffer) - 1);
|
/frameworks/av/media/libmedia/ |
MediaUtils.cpp | 43 size_t maxMem = SIZE_MAX; 46 if (size_t(numPages) < SIZE_MAX / size_t(pageSize)) { 64 if (propVal > 0 && uint64_t(propVal) <= SIZE_MAX) { 74 if (maxMem <= SIZE_MAX - cfi_size) { 77 maxMem = SIZE_MAX;
|
/system/core/libcutils/ |
strdup16to8.cpp | 21 #include <limits.h> /* for SIZE_MAX */ 35 * for len > SIZE_MAX/3. 46 * overflows, and never return more than (SIZE_MAX-1) 48 * SIZE_MAX bytes, which will return NULL which can at least 55 /* Fast path for the usual case where 3*len is < SIZE_MAX-1. 57 if (len < (SIZE_MAX-1)/3) { 86 return SIZE_MAX-1; 89 /* don't return SIZE_MAX to avoid common user bug */ 90 if (utf8Len == SIZE_MAX) 91 utf8Len = SIZE_MAX-1 [all...] |
/external/python/cpython3/Python/ |
asdl.c | 12 (size && (((size_t)size - 1) > (SIZE_MAX / sizeof(void *))))) { 19 if (n > SIZE_MAX - sizeof(asdl_seq)) { 43 (size && (((size_t)size - 1) > (SIZE_MAX / sizeof(void *))))) { 50 if (n > SIZE_MAX - sizeof(asdl_seq)) {
|
/external/syslinux/com32/include/bitsize32/ |
stdintlimits.h | 23 # define SIZE_MAX UINT32_MAX //(4294967295U)
|
/external/syslinux/com32/include/bitsize64/ |
stdintlimits.h | 23 # define SIZE_MAX UINT64_MAX
|
/external/nanopb-c/examples/network_server/ |
common.c | 32 pb_ostream_t stream = {&write_callback, (void*)(intptr_t)fd, SIZE_MAX, 0}; 38 pb_istream_t stream = {&read_callback, (void*)(intptr_t)fd, SIZE_MAX};
|
/system/bt/stack/btm/ |
btm_main.cc | 51 btm_cb.page_queue = fixed_queue_new(SIZE_MAX); 52 btm_cb.sec_pending_q = fixed_queue_new(SIZE_MAX);
|
/bionic/libc/upstream-openbsd/lib/libc/stdlib/ |
reallocarray.c | 24 * This is sqrt(SIZE_MAX+1), as s1*s2 <= SIZE_MAX 33 nmemb > 0 && SIZE_MAX / nmemb < size) {
|
/external/giflib/ |
openbsd-reallocarray.c | 24 * This is sqrt(SIZE_MAX+1), as s1*s2 <= SIZE_MAX 33 nmemb > 0 && SIZE_MAX / nmemb < size) {
|
/external/python/cpython3/Modules/_decimal/libmpdec/ |
io.h | 37 #if SIZE_MAX == MPD_SIZE_MAX
|
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/ |
limits.h | 74 #ifndef SIZE_MAX 76 #define SIZE_MAX _UI64_MAX 78 #define SIZE_MAX UINT_MAX
|
stdint.h | 152 #ifndef SIZE_MAX 154 #define SIZE_MAX UINT64_MAX 156 #define SIZE_MAX UINT32_MAX
|
/external/flac/include/share/ |
alloc.h | 41 * before #including this file, otherwise SIZE_MAX might not be defined 44 #include <limits.h> /* for SIZE_MAX */ 46 #include <stdint.h> /* for SIZE_MAX in case limits.h didn't get it */ 51 #ifndef SIZE_MAX 63 # define SIZE_MAX SIZE_T_MAX 125 if(size1 > SIZE_MAX / size2) 128 if(size1 > SIZE_MAX / size3) 138 if(size1 > SIZE_MAX / size2) 151 if(size1 > SIZE_MAX / size2) 203 if(size1 > SIZE_MAX / size2 [all...] |
/external/flac/libFLAC/ |
memory.c | 75 if(elements > SIZE_MAX / sizeof(*pu)) /* overflow check */ 104 if(elements > SIZE_MAX / sizeof(*pu)) /* overflow check */ 133 if(elements > SIZE_MAX / sizeof(*pu)) /* overflow check */ 162 if(elements > SIZE_MAX / sizeof(*pu)) /* overflow check */ 193 if(elements > SIZE_MAX / sizeof(*pu)) /* overflow check */ 215 if(size1 > SIZE_MAX / size2)
|
/external/elfutils/libdwelf/ |
dwelf_scn_gnu_compressed_size.c | 70 if (size + 4 + 8 + 6 + 5 < d->d_size || size > SIZE_MAX)
|
/external/nanopb-c/tests/basic_stream/ |
encode_stream.c | 26 pb_ostream_t stream = {&streamcallback, NULL, SIZE_MAX, 0};
|
/system/core/libutils/tests/ |
Vector_test.cpp | 79 EXPECT_DEATH(vector.setCapacity(SIZE_MAX / sizeof(int) + 1), "Assertion failed"); 100 // overflow : the size here will be (1 + SIZE_MAX). 101 EXPECT_DEATH(vector.insertArrayAt(NULL, 0, SIZE_MAX), "new_size overflow"); 109 EXPECT_DEATH(vector.insertArrayAt(NULL, 0, (SIZE_MAX - 1)), "new_capacity overflow"); 116 EXPECT_DEATH(vector.insertArrayAt(NULL, 0, (SIZE_MAX / 2)), "new_alloc_size overflow");
|
/system/libhidl/transport/memory/1.0/default/ |
AshmemMapper.cpp | 42 if (mem.size() > SIZE_MAX) {
|
/device/linaro/bootloader/edk2/StdLib/Include/Ia32/machine/ |
int_limits.h | 138 #define SIZE_MAX 0xffffffffU /* size_t */
139 #define SIZE_T_MAX SIZE_MAX
|
/device/linaro/bootloader/edk2/StdLib/Include/X64/machine/ |
int_limits.h | 132 #define SIZE_MAX 0xffffffffffffffffULL /* size_t */
133 #define SIZE_T_MAX SIZE_MAX
|
/bionic/libc/upstream-netbsd/lib/libc/stdlib/ |
reallocarr.c | 41 /* Old POSIX has SIZE_MAX in limits.h */ 80 number > SIZE_MAX / size)) {
|