[issue9669] regexp: zero-width matches in MIN_UNTIL

Armin Rigo report at bugs.python.org
Tue Aug 24 15:12:04 CEST 2010


New submission from Armin Rigo <arigo at users.sourceforge.net>:

The attached example shows a case where the '_sre' module goes into an instantaneous infinite memory leak.  The bug (and probably the fix too) is related to empty matches in the MIN_UNTIL operator ("+?", "*?").  It looks very similar to the bug and fix already checked in about the MAX_UNTIL operator ("+", "*").

----------
components: Extension Modules
files: empty_minuntil.py
messages: 114785
nosy: arigo
priority: normal
severity: normal
status: open
title: regexp: zero-width matches in MIN_UNTIL
type: crash
versions: Python 2.7
Added file: http://bugs.python.org/file18628/empty_minuntil.py

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


More information about the Python-bugs-list mailing list