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

Georg Brandl report at bugs.python.org
Mon Jan 3 00:01:22 CET 2011


Georg Brandl <georg at python.org> added the comment:

In that case however, it's equally unsafe to not replace a \n, but still use PyUnicode_FromString() without a size given -- you will read from random memory.

Since all implementations we have or can test have a defined behavior in one way or the other, I think an example of an implementation that exhibits such undefined behavior is required first.

----------

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


More information about the Python-bugs-list mailing list