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
984dfa7e
Commit
984dfa7e
authored
Apr 02, 2012
by
Kristján Valur Jónsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #14471: Fix a possible buffer overrun in the winreg module.
parent
e900096d
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 @
984dfa7e
...
...
@@ -34,6 +34,8 @@ Core and Builtins
- Issue #13521: dict.setdefault() now does only one lookup for the given key,
making it "atomic" for many purposes. Patch by Filip Gruszczyński.
- Issue #14471: Fix a possible buffer overrun in the winreg module.
Library
-------
...
...
PC/winreg.c
View file @
984dfa7e
...
...
@@ -1110,7 +1110,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