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

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

/ cpython Public

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

Merged
Yhg1s merged 1 commit into
python:3.12from
encukou:backport-a5969e8-3.12
Aug 4, 2026
Merged

[3.12] gh-146333: Fix quadratic regex backtracking in configparser option parsing (GH-146399) (GH-148559)#154081
Yhg1s merged 1 commit into
python:3.12from
encukou:backport-a5969e8-3.12

Conversation

encukou commented Jul 19, 2026
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

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)

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

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)

Co-authored-by: Joshua Swanson <22283299+joshuaswanson@users.noreply.github.com>
(cherry picked from commit a5969e8)
Yhg1s merged commit 5755830 into python:3.12 Aug 4, 2026
31 checks passed

Copy link
Copy Markdown

Thanks @encukou for the PR, and @Yhg1s for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11.
🐍🍒⛏🤖

bedevere-app Bot commented Aug 4, 2026

Copy link
Copy Markdown

GH-155160 is a backport of this pull request to the 3.11 branch.

bedevere-app Bot removed the needs backport to 3.11 only security fixes label Aug 4, 2026

bedevere-app Bot commented Aug 4, 2026

Copy link
Copy Markdown

GH-155161 is a backport of this pull request to the 3.10 branch.

bedevere-app Bot removed the needs backport to 3.10 only security fixes label Aug 4, 2026
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL