/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Include/ |
D | pymem.h | 74 #define PyMem_MALLOC(n) ((size_t)(n) > (size_t)PY_SSIZE_T_MAX ? NULL \ 76 #define PyMem_REALLOC(p, n) ((size_t)(n) > (size_t)PY_SSIZE_T_MAX ? NULL \ 93 ( ((size_t)(n) > PY_SSIZE_T_MAX / sizeof(type)) ? NULL : \ 96 ( ((size_t)(n) > PY_SSIZE_T_MAX / sizeof(type)) ? NULL : \ 106 ( (p) = ((size_t)(n) > PY_SSIZE_T_MAX / sizeof(type)) ? NULL : \ 109 ( (p) = ((size_t)(n) > PY_SSIZE_T_MAX / sizeof(type)) ? NULL : \
|
D | pyport.h | 202 #define PY_SSIZE_T_MAX ((Py_ssize_t)(((size_t)-1)>>1)) macro 204 #define PY_SSIZE_T_MIN (-PY_SSIZE_T_MAX-1)
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Include/ |
D | pymem.h | 74 #define PyMem_MALLOC(n) ((size_t)(n) > (size_t)PY_SSIZE_T_MAX ? NULL \ 76 #define PyMem_REALLOC(p, n) ((size_t)(n) > (size_t)PY_SSIZE_T_MAX ? NULL \ 93 ( ((size_t)(n) > PY_SSIZE_T_MAX / sizeof(type)) ? NULL : \ 96 ( ((size_t)(n) > PY_SSIZE_T_MAX / sizeof(type)) ? NULL : \ 106 ( (p) = ((size_t)(n) > PY_SSIZE_T_MAX / sizeof(type)) ? NULL : \ 109 ( (p) = ((size_t)(n) > PY_SSIZE_T_MAX / sizeof(type)) ? NULL : \
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/ |
D | sre.h | 23 # define SRE_MAXREPEAT ((SRE_CODE)PY_SSIZE_T_MAX) 30 # define SRE_MAXREPEAT ((SRE_CODE)PY_SSIZE_T_MAX)
|
D | stropmodule.c | 219 if (slen > PY_SSIZE_T_MAX - reslen || in strop_joinfields() 220 seplen > PY_SSIZE_T_MAX - reslen - seplen) { in strop_joinfields() 263 if (slen > PY_SSIZE_T_MAX - reslen || in strop_joinfields() 264 seplen > PY_SSIZE_T_MAX - reslen - seplen) { in strop_joinfields() 307 Py_ssize_t len, n, i = 0, last = PY_SSIZE_T_MAX; in strop_find() 351 Py_ssize_t i = 0, last = PY_SSIZE_T_MAX; in strop_rfind() 618 if (j > PY_SSIZE_T_MAX - incr) in strop_expandtabs() 622 if (j > PY_SSIZE_T_MAX - 1) in strop_expandtabs() 626 if (i > PY_SSIZE_T_MAX - j) in strop_expandtabs() 634 if (i > PY_SSIZE_T_MAX - j) in strop_expandtabs() [all …]
|
D | binascii.c | 144 #define BASE64_MAXBIN (PY_SSIZE_T_MAX/2 - sizeof(PyStringObject) - 3) 378 if (ascii_len > PY_SSIZE_T_MAX - 3) { in binascii_a2b_base64() 550 if (len > PY_SSIZE_T_MAX - 2) { in binascii_a2b_hqx() 630 if (len > PY_SSIZE_T_MAX / 2 - 2) { in binascii_rlecode_hqx() 694 if (len > PY_SSIZE_T_MAX / 2 - 2) { in binascii_b2a_hqx() 752 else if (in_len > PY_SSIZE_T_MAX / 2) { in binascii_rledecode_hqx() 784 if ( out_len > PY_SSIZE_T_MAX / 2) return PyErr_NoMemory(); \ in binascii_rledecode_hqx() 1055 if (arglen > PY_SSIZE_T_MAX / 2) { in binascii_hexlify()
|
D | cStringIO.c | 216 assert(IOOOBJECT(self)->pos <= PY_SSIZE_T_MAX - len); in IO_creadline() 401 if (oself->pos >= PY_SSIZE_T_MAX - len) { in O_cwrite() 410 if (newsize <= (size_t)newpos || newsize > PY_SSIZE_T_MAX) { in O_cwrite() 411 assert(newpos < PY_SSIZE_T_MAX - 1); in O_cwrite()
|
D | arraymodule.c | 655 if (Py_SIZE(a) > PY_SSIZE_T_MAX - Py_SIZE(b)) { in array_concat() 680 if ((Py_SIZE(a) != 0) && (n > PY_SSIZE_T_MAX / Py_SIZE(a))) { in array_repeat() 828 if ((Py_SIZE(self) > PY_SSIZE_T_MAX - Py_SIZE(b)) || in array_do_extend() 829 ((Py_SIZE(self) + Py_SIZE(b)) > PY_SSIZE_T_MAX / self->ob_descr->itemsize)) { in array_do_extend() 876 (Py_SIZE(self) > PY_SSIZE_T_MAX / self->ob_descr->itemsize)) { in array_inplace_repeat() 887 if (size > PY_SSIZE_T_MAX / n) { in array_inplace_repeat() 1329 if (itemsize && (self->ob_size > PY_SSIZE_T_MAX / itemsize)) { in array_fromlist() 1391 if ((n > PY_SSIZE_T_MAX - Py_SIZE(self)) || in array_fromstring() 1392 ((Py_SIZE(self) + n) > PY_SSIZE_T_MAX / itemsize)) { in array_fromstring() 1420 if (self->ob_size <= PY_SSIZE_T_MAX / self->ob_descr->itemsize) { in array_tostring() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/stringlib/ |
D | transmogrify.h | 32 if (j > PY_SSIZE_T_MAX - incr) in stringlib_expandtabs() 38 if (j > PY_SSIZE_T_MAX - 1) in stringlib_expandtabs() 42 if (i > PY_SSIZE_T_MAX - j) in stringlib_expandtabs() 50 if (i > PY_SSIZE_T_MAX - j) in stringlib_expandtabs()
|
D | find.h | 114 Py_ssize_t tmp_end = PY_SSIZE_T_MAX; in stringlib_parse_args_finds()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/stringlib/ |
D | transmogrify.h | 32 if (j > PY_SSIZE_T_MAX) { in stringlib_expandtabs() 44 if (i > PY_SSIZE_T_MAX) { in stringlib_expandtabs() 52 if ((i + j) > PY_SSIZE_T_MAX) { in stringlib_expandtabs()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
D | test_getargs2.py | 42 INT_MIN, LONG_MIN, LONG_MAX, PY_SSIZE_T_MIN, PY_SSIZE_T_MAX, \ 203 self.assertEqual(PY_SSIZE_T_MAX, getargs_n(PY_SSIZE_T_MAX)) 204 self.assertRaises(OverflowError, getargs_n, PY_SSIZE_T_MAX+1)
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/ |
D | enumobject.c | 38 en->en_index = PY_SSIZE_T_MAX; in enum_new() 89 en->en_longindex = PyInt_FromSsize_t(PY_SSIZE_T_MAX); in enum_next_long() 134 if (en->en_index == PY_SSIZE_T_MAX) in enum_next()
|
D | stringobject.c | 82 if (size > PY_SSIZE_T_MAX - PyStringObject_SIZE) { in PyString_FromStringAndSize() 122 if (size > PY_SSIZE_T_MAX - PyStringObject_SIZE) { in PyString_FromString() 931 if (Py_SIZE(op) > (PY_SSIZE_T_MAX - 2)/4) { in PyString_Repr() 1049 Py_SIZE(a) > PY_SSIZE_T_MAX - Py_SIZE(b)) { in string_concat() 1056 if (size > PY_SSIZE_T_MAX - PyStringObject_SIZE) { in string_concat() 1463 maxsplit = PY_SSIZE_T_MAX; in string_split() 1562 maxsplit = PY_SSIZE_T_MAX; in string_rsplit() 1650 if (sz < old_sz || sz > PY_SSIZE_T_MAX) { in string_join() 1712 Py_ssize_t start=0, end=PY_SSIZE_T_MAX; in string_find_internal() 2125 Py_ssize_t start = 0, end = PY_SSIZE_T_MAX; in string_count() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/ |
D | enumobject.c | 38 en->en_index = PY_SSIZE_T_MAX; in enum_new() 89 en->en_longindex = PyInt_FromSsize_t(PY_SSIZE_T_MAX); in enum_next_long() 134 if (en->en_index == PY_SSIZE_T_MAX) in enum_next()
|
D | stringobject.c | 82 if (size > PY_SSIZE_T_MAX - PyStringObject_SIZE) { in PyString_FromStringAndSize() 122 if (size > PY_SSIZE_T_MAX - PyStringObject_SIZE) { in PyString_FromString() 927 if (newsize > PY_SSIZE_T_MAX || newsize / 4 != Py_SIZE(op)) { in PyString_Repr() 1044 Py_SIZE(a) > PY_SSIZE_T_MAX - Py_SIZE(b)) { in string_concat() 1051 if (size > PY_SSIZE_T_MAX - PyStringObject_SIZE) { in string_concat() 1446 maxsplit = PY_SSIZE_T_MAX; in string_split() 1545 maxsplit = PY_SSIZE_T_MAX; in string_rsplit() 1633 if (sz < old_sz || sz > PY_SSIZE_T_MAX) { in string_join() 1695 Py_ssize_t start=0, end=PY_SSIZE_T_MAX; in string_find_internal() 2108 Py_ssize_t start = 0, end = PY_SSIZE_T_MAX; in string_count() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/ |
D | stropmodule.c | 219 if (slen > PY_SSIZE_T_MAX - reslen || in strop_joinfields() 220 seplen > PY_SSIZE_T_MAX - reslen - seplen) { in strop_joinfields() 263 if (slen > PY_SSIZE_T_MAX - reslen || in strop_joinfields() 264 seplen > PY_SSIZE_T_MAX - reslen - seplen) { in strop_joinfields() 307 Py_ssize_t len, n, i = 0, last = PY_SSIZE_T_MAX; in strop_find() 351 Py_ssize_t i = 0, last = PY_SSIZE_T_MAX; in strop_rfind() 676 Py_ssize_t i = 0, last = PY_SSIZE_T_MAX; in strop_count() 1103 count = PY_SSIZE_T_MAX; in mymemreplace()
|
D | binascii.c | 144 #define BASE64_MAXBIN (PY_SSIZE_T_MAX/2 - sizeof(PyStringObject) - 3) 380 if (ascii_len > PY_SSIZE_T_MAX - 3) { in binascii_a2b_base64() 556 if (len > PY_SSIZE_T_MAX - 2) { in binascii_a2b_hqx() 639 if (len > PY_SSIZE_T_MAX / 2 - 2) { in binascii_rlecode_hqx() 705 if (len > PY_SSIZE_T_MAX / 2 - 2) { in binascii_b2a_hqx() 765 else if (in_len > PY_SSIZE_T_MAX / 2) { in binascii_rledecode_hqx() 797 if ( out_len > PY_SSIZE_T_MAX / 2) return PyErr_NoMemory(); \ in binascii_rledecode_hqx() 1070 if (arglen > PY_SSIZE_T_MAX / 2) { in binascii_hexlify()
|
D | arraymodule.c | 655 if (Py_SIZE(a) > PY_SSIZE_T_MAX - Py_SIZE(b)) { in array_concat() 680 if ((Py_SIZE(a) != 0) && (n > PY_SSIZE_T_MAX / Py_SIZE(a))) { in array_repeat() 828 if ((Py_SIZE(self) > PY_SSIZE_T_MAX - Py_SIZE(b)) || in array_do_extend() 829 ((Py_SIZE(self) + Py_SIZE(b)) > PY_SSIZE_T_MAX / self->ob_descr->itemsize)) { in array_do_extend() 876 (Py_SIZE(self) > PY_SSIZE_T_MAX / self->ob_descr->itemsize)) { in array_inplace_repeat() 887 if (size > PY_SSIZE_T_MAX / n) { in array_inplace_repeat() 1329 if (itemsize && (self->ob_size > PY_SSIZE_T_MAX / itemsize)) { in array_fromlist() 1391 if ((n > PY_SSIZE_T_MAX - Py_SIZE(self)) || in array_fromstring() 1392 ((Py_SIZE(self) + n) > PY_SSIZE_T_MAX / itemsize)) { in array_fromstring() 1420 if (self->ob_size <= PY_SSIZE_T_MAX / self->ob_descr->itemsize) { in array_tostring() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/_io/ |
D | bytesio.c | 49 assert(self->pos < PY_SSIZE_T_MAX - len); in get_line() 70 if (size > PY_SSIZE_T_MAX) in resize_buffer() 421 assert(self->pos + len < PY_SSIZE_T_MAX); in bytesio_readinto() 527 if (pos > PY_SSIZE_T_MAX - self->pos) { in bytesio_seek() 535 if (pos > PY_SSIZE_T_MAX - self->string_size) { in bytesio_seek()
|
D | _iomodule.h | 112 # define PY_OFF_T_MAX PY_SSIZE_T_MAX
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/ |
D | codecs.c | 59 if (len > PY_SSIZE_T_MAX) { in normalizestring() 569 if (end - start > PY_SSIZE_T_MAX / (2+7+1)) { in PyCodec_XMLCharRefReplaceErrors() 570 end = start + PY_SSIZE_T_MAX / (2+7+1); in PyCodec_XMLCharRefReplaceErrors() 692 if (end - start > PY_SSIZE_T_MAX / (1+1+8)) in PyCodec_BackslashReplaceErrors() 693 end = start + PY_SSIZE_T_MAX / (1+1+8); in PyCodec_BackslashReplaceErrors()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/_io/ |
D | bytesio.c | 49 assert(self->pos < PY_SSIZE_T_MAX - len); in get_line() 70 if (size > PY_SSIZE_T_MAX) in resize_buffer() 411 assert(self->pos + len < PY_SSIZE_T_MAX); in bytesio_readinto() 517 if (pos > PY_SSIZE_T_MAX - self->pos) { in bytesio_seek() 525 if (pos > PY_SSIZE_T_MAX - self->string_size) { in bytesio_seek()
|
D | _iomodule.h | 107 # define PY_OFF_T_MAX PY_SSIZE_T_MAX
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Include/ |
D | pyport.h | 202 #define PY_SSIZE_T_MAX ((Py_ssize_t)(((size_t)-1)>>1)) macro 204 #define PY_SSIZE_T_MIN (-PY_SSIZE_T_MAX-1)
|