]> granicus.if.org Git - python/commit
bpo-34087: Fix buffer overflow in int(s) and similar functions (GH-8274)
authorINADA Naoki <methane@users.noreply.github.com>
Sat, 14 Jul 2018 03:06:43 +0000 (12:06 +0900)
committerGitHub <noreply@github.com>
Sat, 14 Jul 2018 03:06:43 +0000 (12:06 +0900)
commit16dfca4d829e45f36e71bf43f83226659ce49315
treef06c2f627ae2b4984d1c56ae97248b6eb5c51c38
parentcafaf0447b950fd4f59edd8cbde040c61ae528f8
bpo-34087: Fix buffer overflow in int(s) and similar functions (GH-8274)

`_PyUnicode_TransformDecimalAndSpaceToASCII()` missed trailing NUL char.
It caused buffer overflow in `_Py_string_to_number_with_underscores()`.

This bug is introduced in 9b6c60cb.
Lib/test/test_complex.py
Lib/test/test_float.py
Lib/test/test_long.py
Misc/NEWS.d/next/Core and Builtins/2018-07-13-22-09-55.bpo-34087.I1Bxfc.rst [new file with mode: 0644]
Objects/unicodeobject.c
Python/pystrtod.c