[Python-bugs-list] strptime buffer overflow (PR#95)

bridge@gsnet.com bridge@gsnet.com
Tue, 5 Oct 1999 12:45:14 -0400 (EDT)


Full_Name: Mike Bridge
Version: 1.5.2
OS: RedHat 5.2
Submission from: zuls.hebdomag.com (207.229.3.225)


Hi-

I got a core dump with the following line, and I don't see it in the bug
database.  I inadvertantly put a %X instead of a %Y in the format 
string for strptime:

Python 1.5.2 (#1, Apr 18 1999, 16:03:16)  [GCC pgcc-2.91.60 19981201 (egcs-1.1.1
 on linux2
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import time
>>> time.strptime("Oct 28 1999", "%b %d %X")
Segmentation fault (core dumped)