We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dba1b40 + 984dfa7 commit 2247775Copy full SHA for 2247775
2 files changed
Misc/NEWS
@@ -56,6 +56,8 @@ Core and Builtins
56
- Issue #14435: Remove dedicated block allocator from floatobject.c and rely
57
on the PyObject_Malloc() api like all other objects.
58
59
+- Issue #14471: Fix a possible buffer overrun in the winreg module.
60
+
61
Library
62
-------
63
PC/winreg.c
@@ -1122,7 +1122,7 @@ PyEnumKey(PyObject *self, PyObject *args)
1122
* nul. RegEnumKeyEx requires a 257 character buffer to
1123
* retrieve such a key name. */
1124
wchar_t tmpbuf[257];
1125
- DWORD len = sizeof(tmpbuf); /* includes NULL terminator */
+ DWORD len = sizeof(tmpbuf)/sizeof(wchar_t); /* includes NULL terminator */
1126
1127
if (!PyArg_ParseTuple(args, "Oi:EnumKey", &obKey, &index))
1128
return NULL;
0 commit comments