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] |
Issue #15989: Fixed some scarcely probable integer overflows. It is very unlikely that they can occur in real code for now.
diff --git a/Modules/_io/_iomodule.c b/Modules/_io/_iomodule.c index 1c2d3a0..7428aed 100644 --- a/Modules/_io/_iomodule.c +++ b/Modules/_io/_iomodule.c
@@ -238,7 +238,8 @@ int text = 0, binary = 0, universal = 0; char rawmode[6], *m; - int line_buffering, isatty; + int line_buffering; + long isatty; PyObject *raw, *modeobj = NULL, *buffer, *wrapper, *result = NULL;