pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python/cpython/pull/155160

s/pull-requests-12898a7be3dbcd40.css" /> [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
Skip to content

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

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

[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

@miss-islington miss-islington commented Aug 4, 2026

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 [email protected]
Co-authored-by: Joshua Swanson [email protected]

…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 <[email protected]>
Co-authored-by: Joshua Swanson <[email protected]>
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.

2 participants

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy