summaryrefslogtreecommitdiff
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authorAlexey Izbyshev <izbyshev@ispras.ru>2019-05-23 03:01:08 +0300
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-05-22 17:01:08 -0700
commit6bc5917903b722bdd0e5d3020949f26fec5dfe9a (patch)
tree2e5e54d89a314efadf11aa0f0a48ab571a511813 /Python/sysmodule.c
parentdf22c03b93ea4620fdf4a0b3cbbbfa7c645af783 (diff)
downloadcpython-git-6bc5917903b722bdd0e5d3020949f26fec5dfe9a.tar.gz
bpo-35091: Objects/listobject.c: Replace overflow checks in gallop fu… (GH-10202)
…nctions with asserts The actual overflow can never happen because of the following: * The size of a list can't be greater than PY_SSIZE_T_MAX / sizeof(PyObject*). * The size of a pointer on all supported plaftorms is at least 4 bytes. * ofs is positive and less than the list size at the beginning of each iteration. https://bugs.python.org/issue35091
Diffstat (limited to 'Python/sysmodule.c')
0 files changed, 0 insertions, 0 deletions