[New-bugs-announce] [issue9888] int overflow in datetime causes seg fault from datetime.ctime()

Brian Bernstein report at bugs.python.org
Fri Sep 17 20:18:02 CEST 2010


New submission from Brian Bernstein <bernie9998 at gmail.com>:

When creating an int overflow via a subtraction operation with a datetime object and a timedelta object, the resulting datetime object can cause a segmentation fault when the ctime method is called.

Segmentation Fault occurred on python 2.6.5 on 64 bit ubuntu lucid.

Code as follows:

from datetime import datetime, timedelta
(datetime.now() - timedelta(734395)).ctime()

----------
components: None
files: segfault.py
messages: 116700
nosy: bernie9998
priority: normal
severity: normal
status: open
title: int overflow in datetime causes seg fault from datetime.ctime()
type: crash
versions: Python 2.6
Added file: http://bugs.python.org/file18909/segfault.py

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


More information about the New-bugs-announce mailing list