]> granicus.if.org Git - python/commit
SF bug #495021: Crash calling os.stat with a trailing backslash
authorTim Peters <tim.peters@gmail.com>
Wed, 19 Dec 2001 19:05:01 +0000 (19:05 +0000)
committerTim Peters <tim.peters@gmail.com>
Wed, 19 Dec 2001 19:05:01 +0000 (19:05 +0000)
commit500bd035fa09ab27013d197030feb01f620a194c
treeac1a44b8b95cc638d131f9dbc0a5f06bbaaad512
parent04a866170dcad6a4e806fedca0d5e38ebe11867b
SF bug #495021:  Crash calling os.stat with a trailing backslash
Patch from Mark Hammond, plus code rearrangement and comments from me.
posix_do_stat():  Windows-specific code could try to free() stack
memory in some cases when a path ending with a forward or backward slash
was passed to os.stat().
Modules/posixmodule.c