After noticing that without pydebug I can reproduce in v3.7.0 but not in master I ran a git bisect, the following commit looks like it fixes the issue:
```
commit 16dfca4d829e45f36e71bf43f83226659ce49315
Author: INADA Naoki <methane@users.noreply.github.com>
Date: Sat Jul 14 12:06:43 2018 +0900
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.
``` |