mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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:
parent
310f81449a
commit
89ff3c7f20
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue