[issue31619] Strange error when convert hexadecimal with underscores to int
Stefan Krah
report at bugs.python.org
Fri Sep 29 13:49:43 EDT 2017
Stefan Krah <stefan at bytereef.org> added the comment:
> We see if digits * bits_per_char + PyLong_SHIFT -1 overflows an int?
Yes, but the check is too late: UB can already occur in this calculation
and then all bets are off.
It looks like 'n' was Py_ssize_t in 2.7. :)
----------
nosy: +skrah
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31619>
_______________________________________
More information about the Python-bugs-list
mailing list