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

Viktor Chynarov report at bugs.python.org
Fri Oct 5 22:58:01 CEST 2012


Viktor Chynarov added the comment:

Serhiy, when I use a large number, Python also crashes.

>>> initial_struct_time = [tm for tm in time.localtime()]
>>> initial_struct_time[3] = 101
>>> faulty_time = time.asctime(initial_struct_time)

The above code leads to crash.

My Python version information and computer architecture are shown below:
Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)] on win32

----------

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


More information about the Python-bugs-list mailing list