[issue35959] math.prod(range(10)) caues segfault
Pablo Galindo Salgado
report at bugs.python.org
Mon Feb 11 10:09:35 EST 2019
Pablo Galindo Salgado <pablogsal at gmail.com> added the comment:
@Mark
long x = i_result * b;
is still on the PR but the check for overflow does not use x. I will update the PR to move that line inside the overflow-safe block to prevent UB from happening and affecting the check itself (or the rest of the code).
Thanks for pointing that out!
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35959>
_______________________________________
More information about the Python-bugs-list
mailing list