[issue16137] Using time.asctime() with an array with negative tm_hour causes Python Crash.

Serhiy Storchaka report at bugs.python.org
Tue Feb 5 12:41:33 CET 2013


Serhiy Storchaka added the comment:

> 'Mon Jan  1 -01:00:00 2011\n'

This is obviously wrong because trailing '\n' was not dropped.

The issue is not about what is more wrong. The issue is about Python crash. At least we should add a warning in the documentation that incorrect data may crash Python on some platforms.

----------

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


More information about the Python-bugs-list mailing list