summaryrefslogtreecommitdiffstats
path: root/Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-10-05 21:55:53 (GMT)
committerGitHub <noreply@github.com>2022-10-05 21:55:53 (GMT)
commitfd82f16c1e4d9a0661e9a2250004032797652e69 (patch)
treef646a56991b90c369d15c689e9af5af0f48e66f7 /Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp
parent98884f523d783ecd9933c1ca52d80fbbd7d6bdf5 (diff)
downloadcpython-fd82f16c1e4d9a0661e9a2250004032797652e69.zip
cpython-fd82f16c1e4d9a0661e9a2250004032797652e69.tar.gz
cpython-fd82f16c1e4d9a0661e9a2250004032797652e69.tar.bz2
[3.7] gh-97616: list_resize() checks for integer overflow (GH-97617) (#97629)
Fix multiplying a list by an integer (list *= int): detect the integer overflow when the new allocated length is close to the maximum size. Issue reported by Jordan Limor. list_resize() now checks for integer overflow before multiplying the new allocated length by the list item size (sizeof(PyObject*)). (cherry picked from commit a5f092f3c469b674b8d9ccbd4e4377230c9ac7cf) Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Tools/msi/bundle/bootstrap/PythonBootstrapperApplication.cpp')
0 files changed, 0 insertions, 0 deletions