[issue8013] time.asctime segfaults when given a time in the far future
Alexander Belopolsky
report at bugs.python.org
Mon Jan 3 00:22:45 CET 2011
Alexander Belopolsky <alexander.belopolsky at gmail.com> added the comment:
On Sun, Jan 2, 2011 at 6:17 PM, Georg Brandl <report at bugs.python.org> wrote:
..
> (What I mean is that overwriting \n or not, the code is unsafe, so the check must be
> done beforehand. Why should that be left to 3.3?)
Reading beyond a buffer is somewhat safer than writing, but I agree
that checks must be done before calling asctime/ctime. I thought it
would have to wait because it is a feature. Some Linux users may
expect year 10000 to work. (Maybe as a sentinel value somewhere.)
But you are the RM, so it is your call.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8013>
_______________________________________
More information about the Python-bugs-list
mailing list