Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca3f435 commit 0fba9b3Copy full SHA for 0fba9b3
2 files changed
Misc/NEWS
@@ -84,6 +84,8 @@ Library
84
- Issue #16180: Exit pdb if file has syntax error, instead of trapping user
85
in an infinite loop. Patch by Xavier de Gaye.
86
87
+- Issue #24917: time_strftime() Buffer Over-read. Patch by John Leitch.
88
+
89
- Issue #21112: Fix regression in unittest.expectedFailure on subclasses.
90
Patch from Berker Peksag.
91
Modules/timemodule.c
@@ -662,6 +662,12 @@ time_strftime(PyObject *self, PyObject *args)
662
"format %y requires year >= 1900 on AIX");
663
return NULL;
664
}
665
+ else if (outbuf[1] == '\0')
666
+ {
667
+ PyErr_SetString(PyExc_ValueError, "Incomplete format string");
668
+ Py_DECREF(format);
669
+ return NULL;
670
+ }
671
672
#endif
673
0 commit comments