Skip to content

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

Merged
pablogsal merged 2 commits into
python:3.10from
encukou:backport-a5969e8-3.10
Aug 10, 2026
Merged

[3.10] gh-146333: Fix quadratic regex backtracking in configparser option parsing (GH-146399) (GH-148559)#154878
pablogsal merged 2 commits into
python:3.10from
encukou:backport-a5969e8-3.10

Conversation

@encukou

@encukou encukou commented Jul 29, 2026

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)
@pablogsal
pablogsal merged commit 0e14e5d into python:3.10 Aug 10, 2026
14 of 15 checks passed
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.

3 participants