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
a48becb2
Commit
a48becb2
authored
Sep 05, 2015
by
Steve Dower
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #24917: time_strftime() Buffer Over-read. Patch by John Leitch.
parent
d375c6c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
Misc/NEWS
Misc/NEWS
+2
-0
Modules/timemodule.c
Modules/timemodule.c
+6
-0
No files found.
Misc/NEWS
View file @
a48becb2
...
...
@@ -84,6 +84,8 @@ Library
-
Issue
#
16180
:
Exit
pdb
if
file
has
syntax
error
,
instead
of
trapping
user
in
an
infinite
loop
.
Patch
by
Xavier
de
Gaye
.
-
Issue
#
24917
:
time_strftime
()
Buffer
Over
-
read
.
Patch
by
John
Leitch
.
-
Issue
#
21112
:
Fix
regression
in
unittest
.
expectedFailure
on
subclasses
.
Patch
from
Berker
Peksag
.
...
...
Modules/timemodule.c
View file @
a48becb2
...
...
@@ -662,6 +662,12 @@ time_strftime(PyObject *self, PyObject *args)
"format %y requires year >= 1900 on AIX"
);
return
NULL
;
}
else
if
(
outbuf
[
1
]
==
'\0'
)
{
PyErr_SetString
(
PyExc_ValueError
,
"Incomplete format string"
);
Py_DECREF
(
format
);
return
NULL
;
}
}
#endif
...
...
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