Commit 01f519d7 authored by Steve Dower's avatar Steve Dower

Issue #24917: time_strftime() buffer over-read.

parent 10679e34
......@@ -81,6 +81,8 @@ Core and Builtins
Library
-------
- Issue #24917: time_strftime() buffer over-read.
- Issue #23144: Make sure that HTMLParser.feed() returns all the data, even
when convert_charrefs is True.
......
......@@ -655,6 +655,8 @@ time_strftime(PyObject *self, PyObject *args)
outbuf != NULL;
outbuf = wcschr(outbuf+2, '%'))
{
if (outbuf[1] == L'\0')
break;
/* Issue #19634: On AIX, wcsftime("y", (1899, 1, 1, 0, 0, 0, 0, 0, 0))
returns "0/" instead of "99" */
if (outbuf[1] == L'y' && buf.tm_year < 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment