Home
last modified time | relevance | path

Searched refs:PY_SSIZE_T_MAX (Results 1 – 25 of 96) sorted by relevance

1234

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Include/
Dpymem.h74 #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 : \
Dpyport.h202 #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/
Dpymem.h74 #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/
Dsre.h23 # define SRE_MAXREPEAT ((SRE_CODE)PY_SSIZE_T_MAX)
30 # define SRE_MAXREPEAT ((SRE_CODE)PY_SSIZE_T_MAX)
Dstropmodule.c219 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 …]
Dbinascii.c144 #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()
DcStringIO.c216 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()
Darraymodule.c655 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/
Dtransmogrify.h32 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()
Dfind.h114 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/
Dtransmogrify.h32 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/
Dtest_getargs2.py42 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/
Denumobject.c38 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()
Dstringobject.c82 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/
Denumobject.c38 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()
Dstringobject.c82 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/
Dstropmodule.c219 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()
Dbinascii.c144 #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()
Darraymodule.c655 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/
Dbytesio.c49 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.h112 # define PY_OFF_T_MAX PY_SSIZE_T_MAX
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/
Dcodecs.c59 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/
Dbytesio.c49 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.h107 # define PY_OFF_T_MAX PY_SSIZE_T_MAX
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Include/
Dpyport.h202 #define PY_SSIZE_T_MAX ((Py_ssize_t)(((size_t)-1)>>1)) macro
204 #define PY_SSIZE_T_MIN (-PY_SSIZE_T_MAX-1)

1234