summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_unparse.py
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2023-01-21 10:23:59 (GMT)
committerGitHub <noreply@github.com>2023-01-21 10:23:59 (GMT)
commit401fdf9c851eb61229250ebffa942adca99b36d1 (patch)
tree01afb0dae67636403b5955f4aef8ddddd6a21568 /Lib/test/test_unparse.py
parent9e947675ae3dc32f5863e5ed3022301cf7fd79b4 (diff)
downloadcpython-401fdf9c851eb61229250ebffa942adca99b36d1.zip
cpython-401fdf9c851eb61229250ebffa942adca99b36d1.tar.gz
cpython-401fdf9c851eb61229250ebffa942adca99b36d1.tar.bz2
gh-101037: Fix potential memory underallocation for zeros of int subtypes (#101038)
This PR fixes object allocation in long_subtype_new to ensure that there's at least one digit in all cases, and makes sure that the value of that digit is copied over from the source long. Needs backport to 3.11, but not any further: the change to require at least one digit was only introduced for Python 3.11. Fixes #101037.
Diffstat (limited to 'Lib/test/test_unparse.py')
0 files changed, 0 insertions, 0 deletions