]> granicus.if.org Git - python/commitdiff
Fixed out-of-bounce write to rawmode buffer. The fixed size buffer wasn't enlarged...
authorChristian Heimes <christian@cheimes.de>
Mon, 10 Sep 2012 01:50:48 +0000 (03:50 +0200)
committerChristian Heimes <christian@cheimes.de>
Mon, 10 Sep 2012 01:50:48 +0000 (03:50 +0200)
Modules/_io/_iomodule.c

index 15781ac32ea1752bfc697c707dd5eae89e959894..0622c581818546686b42857bef8041339eb4c736 100644 (file)
@@ -229,7 +229,7 @@ io_open(PyObject *self, PyObject *args, PyObject *kwds)
     int creating = 0, reading = 0, writing = 0, appending = 0, updating = 0;
     int text = 0, binary = 0, universal = 0;
 
-    char rawmode[5], *m;
+    char rawmode[6], *m;
     int line_buffering, isatty;
 
     PyObject *raw, *modeobj = NULL, *buffer = NULL, *wrapper = NULL;