[issue8013] time.asctime segfaults when given a time in the far future

Alexander Belopolsky report at bugs.python.org
Mon Jan 3 21:19:19 CET 2011


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

Attached patch, issue8013-pre-check.diff, checks for year range before calling system asctime and replaces a call to ctime with a asctime(localtime(..)).

----------
stage: needs patch -> commit review
Added file: http://bugs.python.org/file20243/issue8013-pre-check.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8013>
_______________________________________


More information about the Python-bugs-list mailing list