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 taleinat
Recipients ezio.melotti, ghi5107, mrabarnett, serhiy.storchaka, taleinat
Date 2018-07-28.18:36:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1532802971.29.0.56676864532.issue33113@psf.upfronthosting.co.za>
In-reply-to
Content
I suggest closing this as "wontfix".

This is a just an non-optimized regexp pattern leading to long run times.  That these are possible is a well-known trait of backtracking regular expression engines in general, and ours in particular.

IMO this isn't a security issue since the root of the issue is the pattern.  I don't see this as a bug or a significant performance issue either, and there is no concrete enhancement suggestion here.

For clarification, the given pattern is equivalent to:
pat = r'''^
(
\(?
[\w\d\-\.\\]{3,}
\|?
)+
[\w\d\-\.\\]{3,}
\)?
$'''
History
Date User Action Args
2018-07-28 18:36:11taleinatsetrecipients: + taleinat, ezio.melotti, mrabarnett, serhiy.storchaka, ghi5107
2018-07-28 18:36:11taleinatsetmessageid: <1532802971.29.0.56676864532.issue33113@psf.upfronthosting.co.za>
2018-07-28 18:36:11taleinatlinkissue33113 messages
2018-07-28 18:36:11taleinatcreate