Files
cpython/Objects
Miss Islington (bot)andGregory P. Smith f97464b3da [3.15] gh-159739: Fix crash in _PyTuple_Resize() with an invalid size (GH-159804) (#159976)
gh-159739: Fix crash in _PyTuple_Resize() with an invalid size (GH-159804)

_PyTuple_Resize() did not validate newsize for non-empty tuples.

Raise SystemError for a negative size and MemoryError for a too-large size,
like PyTuple_New() already does for the empty-tuple path.
(cherry picked from commit c3608845b6)

Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
2026-10-21 00:15:53 +00:00
..

Source files for various builtin objects