summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2006-06-05 23:56:36 +0000
committerBrett Cannon <bcannon@gmail.com>2006-06-05 23:56:36 +0000
commit89d862360cc15c20783f4aa0775a3d2450f1bd7b (patch)
tree27d2c3788b7492bebb63222a977cb83e444aa621 /Python
parentf6080887ffeb381909285b5f839cb115c1b95916 (diff)
downloadcpython-git-89d862360cc15c20783f4aa0775a3d2450f1bd7b.tar.gz
Fix possible buffer overflow on Windows when reading code page.
Backport of fix for bug #1501223.
Diffstat (limited to 'Python')
-rw-r--r--Python/sysmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 1ce016f3f7..b51fa86a76 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -940,7 +940,7 @@ _PySys_Init(void)
PyObject *sysin, *sysout, *syserr;
char *s;
#ifdef MS_WINDOWS
- char buf[10];
+ char buf[13];
#endif
m = Py_InitModule3("sys", sys_methods, sys_doc);