[New-bugs-announce] [issue26551] Regex.finditer infinite loops with certain input

Alan Mislove report at bugs.python.org
Sun Mar 13 06:15:14 EDT 2016

New submission from Alan Mislove:

I found a regex and input that causes re.finditer() to appear to get into an infinite loop.  Please see the attached minimal python script that triggers the behavior.  I've verified the bug exists on 2.7.6, 3.4.0, and 3.5.1; I haven't yet be able to test whether it also exists in the latest 3.6.

components: Regular Expressions
files: bug.py
messages: 261692
nosy: Alan Mislove, ezio.melotti, mrabarnett
priority: normal
severity: normal
status: open
title: Regex.finditer infinite loops with certain input
type: crash
versions: Python 2.7, Python 3.4, Python 3.5
Added file: http://bugs.python.org/file42154/bug.py

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list