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 t
Viktor Chynarov added the comment:
If an array created from a struct_time 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
>>>
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.