File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,6 +34,8 @@ Core and Builtins
3434- Issue #13521: dict.setdefault() now does only one lookup for the given key,
3535 making it "atomic" for many purposes. Patch by Filip Gruszczyński.
3636
37+ - Issue #14471: Fix a possible buffer overrun in the winreg module.
38+
3739Library
3840-------
3941
Original file line number Diff line number Diff line change @@ -1110,7 +1110,7 @@ PyEnumKey(PyObject *self, PyObject *args)
11101110 * nul. RegEnumKeyEx requires a 257 character buffer to
11111111 * retrieve such a key name. */
11121112 wchar_t tmpbuf [257 ];
1113- DWORD len = sizeof (tmpbuf ); /* includes NULL terminator */
1113+ DWORD len = sizeof (tmpbuf )/ sizeof ( wchar_t ) ; /* includes NULL terminator */
11141114
11151115 if (!PyArg_ParseTuple (args , "Oi:EnumKey" , & obKey , & index ))
11161116 return NULL ;
You can’t perform that action at this time.
0 commit comments