summaryrefslogtreecommitdiffstats
path: root/Modules/_io
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-09-06 18:25:30 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-09-06 18:25:30 (GMT)
commit56f6e76c680f47ad2b11bed9406305a000a1889a (patch)
tree072b1cbb10bcc6a2f1ddf761c5bf49a8b447a560 /Modules/_io
parent7827a5b7c29ae71daf0175ce3398115374ceb50e (diff)
downloadcpython-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.c3
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;