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

Viktor Chynarov report at bugs.python.org
Fri Oct 5 00:35:43 CEST 2012


New submission from Viktor Chynarov:

If a that has a negative tm_hour is passed as an argument to time.asctime(), Python crashes. 

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

----------
components: Library (Lib)
messages: 172005
nosy: Viktor.Chynarov
priority: normal
severity: normal
status: open
title: Using time.asctime() with an array with negative tm_hour causes Python Crash.
type: crash
versions: Python 2.7

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


More information about the New-bugs-announce mailing list