diff options
| author | Victor Stinner <vstinner@python.org> | 2022-09-28 22:07:07 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-28 22:07:07 (GMT) |
| commit | a5f092f3c469b674b8d9ccbd4e4377230c9ac7cf (patch) | |
| tree | 95ce34b8dfa9f92bde8e75260a135e379721d676 /Lib/test/test_coroutines.py | |
| parent | 81b9d9ddc20837ecd19f41b764e3f33d8ae805d5 (diff) | |
| download | cpython-a5f092f3c469b674b8d9ccbd4e4377230c9ac7cf.zip cpython-a5f092f3c469b674b8d9ccbd4e4377230c9ac7cf.tar.gz cpython-a5f092f3c469b674b8d9ccbd4e4377230c9ac7cf.tar.bz2 | |
gh-97616: list_resize() checks for integer overflow (#97617)
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*)).
Diffstat (limited to 'Lib/test/test_coroutines.py')
0 files changed, 0 insertions, 0 deletions
