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
55474766
Commit
55474766
authored
Apr 04, 2002
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix by Greg Chapman from SF bug 534347: Potential AV in vgetargskeywords.
Bugfix candidate.
parent
46260094
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
Python/getargs.c
Python/getargs.c
+7
-1
No files found.
Python/getargs.c
View file @
55474766
...
...
@@ -1216,7 +1216,13 @@ vgetargskeywords(PyObject *args, PyObject *keywords, char *format,
int
pos
=
0
;
while
(
PyDict_Next
(
keywords
,
&
pos
,
&
key
,
&
value
))
{
int
match
=
0
;
char
*
ks
=
PyString_AsString
(
key
);
char
*
ks
;
if
(
!
PyString_Check
(
key
))
{
PyErr_SetString
(
PyExc_TypeError
,
"keywords must be strings"
);
return
0
;
}
ks
=
PyString_AsString
(
key
);
for
(
i
=
0
;
i
<
max
;
i
++
)
{
if
(
!
strcmp
(
ks
,
kwlist
[
i
]))
{
match
=
1
;
...
...
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