[New-bugs-announce] [issue16626] Infinite recursion in glob.glob('*:') on Windows

Serhiy Storchaka report at bugs.python.org
Thu Dec 6 12:17:19 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>

More information about the New-bugs-announce mailing list