[issue8013] time.asctime segfaults when given a time in the far future
Alexander Belopolsky
report at bugs.python.org
Mon Jan 3 00:43:16 CET 2011
Alexander Belopolsky <alexander.belopolsky at gmail.com> added the comment:
On Sun, Jan 2, 2011 at 6:29 PM, Georg Brandl <report at bugs.python.org> wrote:
..
> You cannot have both: a safe implementation and the correct behavior with glibc
> (not Linux!) -- except if you start special-casing. Not sure that's worth it.
>
That's the reason why this and the related ctime issue were lingering
for so long.
My plan was to pick the low-hanging fruit (the null check) for 3.3 and
leave proper bounds checking and possibly switch to reentrant APIs for
the next release. There is a long tradition in keeping OS functions'
wrappers thin with an expectation that application programmers will
know the limitations/quirks of their target OSes. Given that datetime
module does not have these issues, I don't see this as "must fix."
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8013>
_______________________________________
More information about the Python-bugs-list
mailing list