]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-135462: Fix quadratic complexity in processing special input in HTMLParser...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 13 Jun 2025 17:23:48 +0000 (19:23 +0200)
committerGitHub <noreply@github.com>
Fri, 13 Jun 2025 17:23:48 +0000 (17:23 +0000)
commitd851f8e258c7328814943e923a7df81bca15df4b
treed8a4100423d76838582bb99cb105f2f8fd4e6ca7
parentb573a850d60c0587809f5369ba90a259381076de
[3.14] gh-135462: Fix quadratic complexity in processing special input in HTMLParser (GH-135464) (GH-135481)

End-of-file errors are now handled according to the HTML5 specs --
comments and declarations are automatically closed, tags are ignored.
(cherry picked from commit 6eb6c5dbfb528bd07d77b60fd71fd05d81d45c41)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/html/parser.py
Lib/test/test_htmlparser.py
Misc/NEWS.d/next/Security/2025-06-13-15-55-22.gh-issue-135462.KBeJpc.rst [new file with mode: 0644]