summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2019-03-09 19:18:08 (GMT)
committerGitHub <noreply@github.com>2019-03-09 19:18:08 (GMT)
commit0411411c6b16a574144dfb59a7780b057ca8e750 (patch)
treec776766542eb4e21b4e462dc8b84e12a7ab40a3d /Objects
parent62fa51f1216e788310d3118f4259f1b4b1e529fe (diff)
downloadcpython-0411411c6b16a574144dfb59a7780b057ca8e750.zip
cpython-0411411c6b16a574144dfb59a7780b057ca8e750.tar.gz
cpython-0411411c6b16a574144dfb59a7780b057ca8e750.tar.bz2
Rework integer overflow path in math.prod and add more tests (GH-11809)
The overflow check was relying on undefined behaviour as it was using the result of the multiplication to do the check, and once the overflow has already happened, any operation on the result is undefined behaviour. Some extra checks that exercise code paths related to this are also added.
Diffstat (limited to 'Objects')
0 files changed, 0 insertions, 0 deletions