FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.11] gh-146333: Fix quadratic regex backtracking in configparser option parsing (GH-146399) (GH-148559) (GH-154081) by miss-islington · Pull Request #155160 · python/cpython · GitHub

/ cpython Public

[3.11] gh-146333: Fix quadratic regex backtracking in configparser option parsing (GH-146399) (GH-148559) (GH-154081) - #155160

Closed
miss-islington wants to merge 1 commit into
python:3.11from
miss-islington:backport-5755830-3.11
Closed

[3.11] gh-146333: Fix quadratic regex backtracking in configparser option parsing (GH-146399) (GH-148559) (GH-154081)#155160
miss-islington wants to merge 1 commit into
python:3.11from
miss-islington:backport-5755830-3.11

Conversation

miss-islington commented Aug 4, 2026
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

Use negative lookahead in option regex to prevent backtracking, and to avoid changing logic outside the regexes (since people could use the regex directly).
(cherry picked from commit 7e0a0be)

(cherry picked from commit a5969e8)
(cherry picked from commit 5755830)

Co-authored-by: Petr Viktorin encukou@gmail.com
Co-authored-by: Joshua Swanson 22283299+joshuaswanson@users.noreply.github.com

…ser option parsing (pythonGH-146399) (pythonGH-148559) (pythonGH-154081)

Use negative lookahead in option regex to prevent backtracking, and to avoid changing logic outside the regexes (since people could use the regex directly).
(cherry picked from commit 7e0a0be)

(cherry picked from commit a5969e8)
(cherry picked from commit 5755830)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Joshua Swanson <22283299+joshuaswanson@users.noreply.github.com>

Copy link
Copy Markdown
Member

Duplicate of #155160.

miss-islington deleted the backport-5755830-3.11 branch August 7, 2026 13:54
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL