Mercurial > cpython-lru_cache-weakref
comparison Python/sysmodule.c @ 38619:11f66731554d 2.4
Fix possible buffer overflow on Windows when reading code page.
Backport of fix for bug #1501223.
| author | Brett Cannon <bcannon@gmail.com> |
|---|---|
| date | Mon, 05 Jun 2006 23:56:36 +0000 |
| parents | bc4fbbb2db30 |
| children | 6fb46e87d5f9 |
comparison
equal
deleted
inserted
replaced
| 38614:654f0383dbcb | 38619:11f66731554d |
|---|---|
| 938 { | 938 { |
| 939 PyObject *m, *v, *sysdict; | 939 PyObject *m, *v, *sysdict; |
| 940 PyObject *sysin, *sysout, *syserr; | 940 PyObject *sysin, *sysout, *syserr; |
| 941 char *s; | 941 char *s; |
| 942 #ifdef MS_WINDOWS | 942 #ifdef MS_WINDOWS |
| 943 char buf[10]; | 943 char buf[13]; |
| 944 #endif | 944 #endif |
| 945 | 945 |
| 946 m = Py_InitModule3("sys", sys_methods, sys_doc); | 946 m = Py_InitModule3("sys", sys_methods, sys_doc); |
| 947 sysdict = PyModule_GetDict(m); | 947 sysdict = PyModule_GetDict(m); |
| 948 | 948 |
