[issue16626] Infinite recursion in glob.glob('*:') on Windows

Serhiy Storchaka report at bugs.python.org
Thu Dec 6 12:17:20 CET 2012


New submission from Serhiy Storchaka:

glob.glob() can fall in infinite recursion (causing stack overflow) on Windows with patterns which contains metacharacters in drive or UNC path ('*:foo', r'\\?\c:\bar'). This is my assumption, someone should confirm it on Windows.

Here is a patch, which fix an infinite recursion.

----------
components: Library (Lib), Windows
files: glob_magic_in_drive.patch
keywords: patch
messages: 177038
nosy: serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Infinite recursion in glob.glob('*:') on Windows
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4
Added file: http://bugs.python.org/file28221/glob_magic_in_drive.patch

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


More information about the Python-bugs-list mailing list