[Python-bugs-list] [ python-Bugs-495021 ] Crash calling os.stat with a trailing
noreply@sourceforge.net
noreply@sourceforge.net
Wed, 19 Dec 2001 22:15:14 -0800
Bugs item #495021, was opened at 2001-12-19 04:49
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=495021&group_id=5470
Category: Windows
Group: None
Status: Closed
>Resolution: Fixed
Priority: 9
Submitted By: Mark Hammond (mhammond)
Assigned to: Tim Peters (tim_one)
Summary: Crash calling os.stat with a trailing
Initial Comment:
>>> import os
[7206 refs]
>>> os.stat("c:\temp\")
[Assertion failure in debug builds]
We are freeing a pointer to a buffer on the stack!!!
Dumb error (mine - sorry :( ) in posixmodule.c.
Attaching patch.
----------------------------------------------------------------------
>Comment By: Mark Hammond (mhammond)
Date: 2001-12-19 22:15
Message:
Logged In: YES
user_id=14198
Looks and works OK to me! Thanks. Resolving as fixed.
----------------------------------------------------------------------
Comment By: Tim Peters (tim_one)
Date: 2001-12-19 11:07
Message:
Logged In: YES
user_id=31435
Thanks, Mark! I saw the report on c.l.py but it didn't
crash when I tried it, so I ignored it <frown>. I
rearranged the code and added some comments; please sanity-
check
Modules/posixmodule.c; new revision: 2.216
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=495021&group_id=5470