Commit 19606411 authored by Christian Heimes's avatar Christian Heimes

Fixed out-of-bounce write to rawmode buffer. The fixed size buffer wasn't...

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
parent bdc7e69f
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment