commit | 56f6e76c680f47ad2b11bed9406305a000a1889a | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Sun Sep 06 21:25:30 2015 +0300 |
committer | Serhiy Storchaka <storchaka@gmail.com> | Sun Sep 06 21:25:30 2015 +0300 |
tree | 072b1cbb10bcc6a2f1ddf761c5bf49a8b447a560 | |
parent | 7827a5b7c29ae71daf0175ce3398115374ceb50e [diff] [blame] |
Issue #15989: Fixed some scarcely probable integer overflows. It is very unlikely that they can occur in real code for now.
diff --git a/Python/Python-ast.c b/Python/Python-ast.c index 8a2dc7c..fd7f17e 100644 --- a/Python/Python-ast.c +++ b/Python/Python-ast.c
@@ -769,7 +769,7 @@ return 1; } - i = (int)PyLong_AsLong(obj); + i = _PyLong_AsInt(obj); if (i == -1 && PyErr_Occurred()) return 1; *out = i;