Fixed out-of-bounce write to rawmode buffer. The fixed size buffer wasn't enlarged for the new 'x' flag. The buffer may contain the 5 flags xrwa+ and the \0 byte

This commit is contained in:
Christian Heimes 2012-09-10 03:50:48 +02:00
parent 310f81449a
commit 89ff3c7f20
1 changed files with 1 additions and 1 deletions

View 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;