/third_party/python/Objects/stringlib/ |
D | transmogrify.h | 53 if (j > PY_SSIZE_T_MAX - incr) in stringlib_expandtabs_impl() 59 if (j > PY_SSIZE_T_MAX - 1) in stringlib_expandtabs_impl() 63 if (i > PY_SSIZE_T_MAX - j) in stringlib_expandtabs_impl() 71 if (i > PY_SSIZE_T_MAX - j) in stringlib_expandtabs_impl() 304 if (to_len > (PY_SSIZE_T_MAX - self_len) / count) { in stringlib_replace_interleave() 568 if (to_len - 1 > (PY_SSIZE_T_MAX - self_len) / count) { in stringlib_replace_single_character() 635 if (to_len - from_len > (PY_SSIZE_T_MAX - self_len) / count) { in stringlib_replace_substring() 688 maxcount = PY_SSIZE_T_MAX; in stringlib_replace()
|
D | join.h | 89 if (itemlen > PY_SSIZE_T_MAX - sz) { in STRINGLIB() 96 if (seplen > PY_SSIZE_T_MAX - sz) { in STRINGLIB()
|
/third_party/python/Include/ |
D | pymem.h | 68 ( ((size_t)(n) > PY_SSIZE_T_MAX / sizeof(type)) ? NULL : \ 78 ( (p) = ((size_t)(n) > PY_SSIZE_T_MAX / sizeof(type)) ? NULL : \
|
/third_party/python/Modules/ |
D | sre.h | 23 # define SRE_MAXREPEAT ((SRE_CODE)PY_SSIZE_T_MAX) 24 # define SRE_MAXGROUPS ((SRE_CODE)PY_SSIZE_T_MAX / SIZEOF_SIZE_T / 2)
|
D | binascii.c | 162 #define BASE64_MAXBIN ((PY_SSIZE_T_MAX - 3) / 2) 644 if (len > PY_SSIZE_T_MAX - 2) in binascii_a2b_hqx_impl() 732 if (len > PY_SSIZE_T_MAX / 2 - 2) in binascii_rlecode_hqx_impl() 801 if (len > PY_SSIZE_T_MAX / 2 - 2) in binascii_b2a_hqx_impl() 863 else if (in_len > PY_SSIZE_T_MAX / 2) in binascii_rledecode_hqx_impl() 1491 if (PY_SSIZE_T_MAX - delta < odatalen) { in binascii_b2a_qp_impl()
|
D | pwdmodule.c | 171 if (bufsize > (PY_SSIZE_T_MAX >> 1)) { in pwd_getpwuid() 254 if (bufsize > (PY_SSIZE_T_MAX >> 1)) { in pwd_getpwnam_impl()
|
D | grpmodule.c | 149 if (bufsize > (PY_SSIZE_T_MAX >> 1)) { in grp_getgrgid_impl() 230 if (bufsize > (PY_SSIZE_T_MAX >> 1)) { in grp_getgrnam_impl()
|
D | mmapmodule.c | 284 Py_ssize_t num_bytes = PY_SSIZE_T_MAX, remaining; in mmap_read_method() 500 if (new_size < 0 || PY_SSIZE_T_MAX - new_size < self->offset) { in mmap_resize_method() 645 if (PY_SSIZE_T_MAX - self->pos < dist) in mmap_seek_method() 650 if (PY_SSIZE_T_MAX - self->size < dist) in mmap_seek_method() 802 if (PY_SSIZE_T_MAX - start < length) { in mmap_madvise_method() 1231 if (status.st_size - offset > PY_SSIZE_T_MAX) { in new_mmap_object() 1440 if (size - offset > PY_SSIZE_T_MAX) { in new_mmap_object()
|
/third_party/python/Objects/ |
D | sliceobject.c | 209 Py_BUILD_ASSERT(PY_SSIZE_T_MIN + 1 <= -PY_SSIZE_T_MAX); in PySlice_Unpack() 226 if (*step < -PY_SSIZE_T_MAX) in PySlice_Unpack() 227 *step = -PY_SSIZE_T_MAX; in PySlice_Unpack() 231 *start = *step < 0 ? PY_SSIZE_T_MAX : 0; in PySlice_Unpack() 238 *stop = *step < 0 ? PY_SSIZE_T_MIN : PY_SSIZE_T_MAX; in PySlice_Unpack() 254 assert(step >= -PY_SSIZE_T_MAX); in PySlice_AdjustIndices()
|
D | bytearrayobject.c | 118 if (size == PY_SSIZE_T_MAX) { in PyByteArray_FromStringAndSize() 215 if (alloc > PY_SSIZE_T_MAX) { in PyByteArray_Resize() 261 if (va.len > PY_SSIZE_T_MAX - vb.len) { in PyByteArray_Concat() 304 if (size > PY_SSIZE_T_MAX - vo.len) { in bytearray_iconcat() 329 if (count > 0 && mysize > PY_SSIZE_T_MAX / count) in bytearray_repeat() 356 if (count > 0 && mysize > PY_SSIZE_T_MAX / count) in bytearray_irepeat() 501 if (Py_SIZE(self) > (Py_ssize_t)PY_SSIZE_T_MAX - growth) { in bytearray_setslice_linear() 924 if (length > (PY_SSIZE_T_MAX - 6 - newsize) / 4) { in bytearray_repr() 1422 maxsplit = PY_SSIZE_T_MAX; in bytearray_split_impl() 1533 maxsplit = PY_SSIZE_T_MAX; in bytearray_rsplit_impl() [all …]
|
D | obmalloc.c | 570 if (size > (size_t)PY_SSIZE_T_MAX) in PyMem_RawMalloc() 579 if (elsize != 0 && nelem > (size_t)PY_SSIZE_T_MAX / elsize) in PyMem_RawCalloc() 588 if (new_size > (size_t)PY_SSIZE_T_MAX) in PyMem_RawRealloc() 603 if (size > (size_t)PY_SSIZE_T_MAX) in PyMem_Malloc() 612 if (elsize != 0 && nelem > (size_t)PY_SSIZE_T_MAX / elsize) in PyMem_Calloc() 621 if (new_size > (size_t)PY_SSIZE_T_MAX) in PyMem_Realloc() 639 if (len > (size_t)PY_SSIZE_T_MAX / sizeof(wchar_t) - 1) { in _PyMem_RawWcsdup() 683 if (size > (size_t)PY_SSIZE_T_MAX) in PyObject_Malloc() 692 if (elsize != 0 && nelem > (size_t)PY_SSIZE_T_MAX / elsize) in PyObject_Calloc() 701 if (new_size > (size_t)PY_SSIZE_T_MAX) in PyObject_Realloc() [all …]
|
D | enumobject.c | 60 en->en_index = PY_SSIZE_T_MAX; in enum_new_impl() 112 en->en_longindex = PyLong_FromSsize_t(PY_SSIZE_T_MAX); in enum_next_long() 167 if (en->en_index == PY_SSIZE_T_MAX) in enum_next()
|
D | bytes_methods.c | 515 Py_ssize_t start = 0, end = PY_SSIZE_T_MAX; in find_internal() 662 Py_ssize_t start = 0, end = PY_SSIZE_T_MAX; in _Py_bytes_count() 686 stringlib_count(str + start, end - start, sub, sub_len, PY_SSIZE_T_MAX) in _Py_bytes_count() 775 Py_ssize_t end = PY_SSIZE_T_MAX; in _Py_bytes_tailmatch()
|
D | bytesobject.c | 116 if ((size_t)size > (size_t)PY_SSIZE_T_MAX - PyBytesObject_SIZE) { in _PyBytes_FromSize() 183 if (size > PY_SSIZE_T_MAX - PyBytesObject_SIZE) { in PyBytes_FromString() 774 if (width > (PY_SSIZE_T_MAX - ((int)c - '0')) / 10) { in _PyBytes_FormatEx() 1317 if (newsize > PY_SSIZE_T_MAX - incr) in PyBytes_Repr() 1325 if (newsize > PY_SSIZE_T_MAX - squotes) in PyBytes_Repr() 1418 if (va.len > PY_SSIZE_T_MAX - vb.len) { in bytes_concat() 1450 if (n > 0 && Py_SIZE(a) > PY_SSIZE_T_MAX / n) { in bytes_repeat() 1718 maxsplit = PY_SSIZE_T_MAX; in bytes_split_impl() 1803 maxsplit = PY_SSIZE_T_MAX; in bytes_rsplit_impl() 2962 if (oldsize > PY_SSIZE_T_MAX - wb.len) { in PyBytes_Concat() [all …]
|
D | unicodeobject.c | 757 if (size > PY_SSIZE_T_MAX - incr) { in backslashreplace() 832 if (size > PY_SSIZE_T_MAX - incr) { in xmlcharrefreplace() 1061 if (length > ((PY_SSIZE_T_MAX - struct_size) / char_size - 1)) { in resize_compact() 1130 if (length > (PY_SSIZE_T_MAX / char_size - 1)) { in resize_inplace() 1170 if (length > PY_SSIZE_T_MAX / (Py_ssize_t)sizeof(wchar_t) - 1) { in resize_inplace() 1240 if (length > ((PY_SSIZE_T_MAX / (Py_ssize_t)sizeof(Py_UNICODE)) - 1)) { in _PyUnicode_New() 1456 if (size > ((PY_SSIZE_T_MAX - struct_size) / char_size - 1)) in PyUnicode_New() 1911 if (length_wo_surrogates > PY_SSIZE_T_MAX / 4 - 1) { in _PyUnicode_Ready() 2327 if (size > PY_SSIZE_T_MAX) { in PyUnicode_FromString() 2350 assert(rt_ids->next_index < PY_SSIZE_T_MAX); in _PyUnicode_FromId() [all …]
|
/third_party/python/Lib/test/ |
D | test_structmembers.py | 13 PY_SSIZE_T_MAX, PY_SSIZE_T_MIN 72 ts.T_PYSSIZET = PY_SSIZE_T_MAX 73 self.assertEqual(ts.T_PYSSIZET, PY_SSIZE_T_MAX)
|
D | test_ucn.py | 18 from _testcapi import INT_MAX, PY_SSIZE_T_MAX, UINT_MAX 20 INT_MAX = PY_SSIZE_T_MAX = UINT_MAX = 2**64 - 1 228 @unittest.skipUnless(INT_MAX < PY_SSIZE_T_MAX, "needs UINT_MAX < SIZE_MAX")
|
/third_party/boost/libs/python/doc/reference/ |
D | ssize_t.qbk | 16 Imports `PY_SSIZE_T_MAX` and `PY_SSIZE_T_MIN` as constants into the `boost::python` namespace if av… 19 ssize_t const ssize_t_max = PY_SSIZE_T_MAX;
|
/third_party/python/Doc/c-api/ |
D | slice.rst | 93 C integers. Silently reduce values larger than ``PY_SSIZE_T_MAX`` to 94 ``PY_SSIZE_T_MAX``, silently boost the start and stop values less than 96 values less than ``-PY_SSIZE_T_MAX`` to ``-PY_SSIZE_T_MAX``.
|
/third_party/python/Include/cpython/ |
D | fileutils.h | 50 # define _PY_READ_MAX PY_SSIZE_T_MAX 51 # define _PY_WRITE_MAX PY_SSIZE_T_MAX
|
/third_party/boost/boost/python/ |
D | ssize_t.hpp | 16 ssize_t const ssize_t_max = PY_SSIZE_T_MAX;
|
/third_party/python/Python/ |
D | codecs.c | 90 if (len > PY_SSIZE_T_MAX) { in normalizestring() 770 if (end - start > PY_SSIZE_T_MAX / (2+7+1)) in PyCodec_XMLCharRefReplaceErrors() 771 end = start + PY_SSIZE_T_MAX / (2+7+1); in PyCodec_XMLCharRefReplaceErrors() 909 if (end - start > PY_SSIZE_T_MAX / (1+1+8)) in PyCodec_BackslashReplaceErrors() 910 end = start + PY_SSIZE_T_MAX / (1+1+8); in PyCodec_BackslashReplaceErrors() 1001 if (ressize > PY_SSIZE_T_MAX - replsize) in PyCodec_NameReplaceErrors() 1161 if (end - start > PY_SSIZE_T_MAX / bytelength) in PyCodec_SurrogatePassErrors() 1162 end = start + PY_SSIZE_T_MAX / bytelength; in PyCodec_SurrogatePassErrors()
|
/third_party/python/Modules/clinic/ |
D | _sre.c.h | 182 Py_ssize_t endpos = PY_SSIZE_T_MAX; in _sre_SRE_Pattern_match() 216 Py_ssize_t endpos = PY_SSIZE_T_MAX; in _sre_SRE_Pattern_fullmatch() 252 Py_ssize_t endpos = PY_SSIZE_T_MAX; in _sre_SRE_Pattern_search() 287 Py_ssize_t endpos = PY_SSIZE_T_MAX; in _sre_SRE_Pattern_findall() 357 Py_ssize_t endpos = PY_SSIZE_T_MAX; in _sre_SRE_Pattern_finditer() 390 Py_ssize_t endpos = PY_SSIZE_T_MAX; in _sre_SRE_Pattern_scanner()
|
/third_party/python/Modules/_io/ |
D | bytesio.c | 97 assert(self->pos < PY_SSIZE_T_MAX - len); in scan_eol() 135 if (size > PY_SSIZE_T_MAX) in resize_buffer() 581 assert(self->pos + len < PY_SSIZE_T_MAX); in _io_BytesIO_readinto_impl() 667 if (pos > PY_SSIZE_T_MAX - self->pos) { in _io_BytesIO_seek_impl() 675 if (pos > PY_SSIZE_T_MAX - self->string_size) { in _io_BytesIO_seek_impl()
|
/third_party/python/Objects/clinic/ |
D | tupleobject.c.h | 26 Py_ssize_t stop = PY_SSIZE_T_MAX; in tuple_index()
|