This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author benspiller
Recipients benspiller, ezio.melotti, mrabarnett
Date 2019-02-06.16:48:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1549471725.04.0.895431195796.issue35915@roundup.psfhosted.org>
In-reply-to
Content
Correction to original report - it doesn't hang indefinitely, it just takes a really long time. Specifically, looks like it's quadratic in the length of the input string. Increase the size of the input string to 1000*1000 and it's really really slow. 

I don't know for sure if it's possible to implement regexes in a way that avoids this pathological behaviour, but it's certainly quite risky that an otherwise working bit of code using a pattern containing .* can hang/livelock an application for an arbitrary  amount of time if passed a larger-than-expected (but actually not that big) input string.
History
Date User Action Args
2019-02-06 16:48:46benspillersetrecipients: + benspiller, ezio.melotti, mrabarnett
2019-02-06 16:48:45benspillersetmessageid: <1549471725.04.0.895431195796.issue35915@roundup.psfhosted.org>
2019-02-06 16:48:45benspillerlinkissue35915 messages
2019-02-06 16:48:44benspillercreate