diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-09-06 18:25:30 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-09-06 18:25:30 (GMT) |
commit | 56f6e76c680f47ad2b11bed9406305a000a1889a (patch) | |
tree | 072b1cbb10bcc6a2f1ddf761c5bf49a8b447a560 /Modules/_io | |
parent | 7827a5b7c29ae71daf0175ce3398115374ceb50e (diff) | |
download | cpython-56f6e76c680f47ad2b11bed9406305a000a1889a.zip cpython-56f6e76c680f47ad2b11bed9406305a000a1889a.tar.gz cpython-56f6e76c680f47ad2b11bed9406305a000a1889a.tar.bz2 |
Issue #15989: Fixed some scarcely probable integer overflows.
It is very unlikely that they can occur in real code for now.
Diffstat (limited to 'Modules/_io')
-rw-r--r-- | Modules/_io/_iomodule.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 @@ _io_open_impl(PyModuleDef *module, PyObject *file, const char *mode, 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; |