[issue31339] [2.7] time.asctime() buffer overflow for year > 9999 using mucl (C library)

STINNER Victor report at bugs.python.org
Mon Sep 4 16:05:54 EDT 2017


STINNER Victor added the comment:

Antoine: "What if this produces a different result and breaks some code on some platforms?"

No idea. It would call that a regression.

I wrote another much simpler change: https://github.com/python/cpython/pull/3296 raises a ValueError for year larger than 9999. It doesn't touch time.ctime() (yet?).

----------

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


More information about the Python-bugs-list mailing list