Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
2247775b
Commit
2247775b
authored
Apr 02, 2012
by
Kristján Valur Jónsson
Browse files
Options
Browse Files
Download
Plain Diff
Merge with 3.2 (Issue #14471)
parents
dba1b40b
984dfa7e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
Misc/NEWS
Misc/NEWS
+2
-0
PC/winreg.c
PC/winreg.c
+1
-1
No files found.
Misc/NEWS
View file @
2247775b
...
...
@@ -56,6 +56,8 @@ Core and Builtins
- Issue #14435: Remove dedicated block allocator from floatobject.c and rely
on the PyObject_Malloc() api like all other objects.
- Issue #14471: Fix a possible buffer overrun in the winreg module.
Library
-------
...
...
PC/winreg.c
View file @
2247775b
...
...
@@ -1122,7 +1122,7 @@ PyEnumKey(PyObject *self, PyObject *args)
* nul. RegEnumKeyEx requires a 257 character buffer to
* retrieve such a key name. */
wchar_t
tmpbuf
[
257
];
DWORD
len
=
sizeof
(
tmpbuf
);
/* includes NULL terminator */
DWORD
len
=
sizeof
(
tmpbuf
)
/
sizeof
(
wchar_t
)
;
/* includes NULL terminator */
if
(
!
PyArg_ParseTuple
(
args
,
"Oi:EnumKey"
,
&
obKey
,
&
index
))
return
NULL
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment