]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.9] gh-135462: Fix quadratic complexity in processing special input in HTMLParser...
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 3 Jul 2025 21:06:00 +0000 (00:06 +0300)
committerGitHub <noreply@github.com>
Thu, 3 Jul 2025 21:06:00 +0000 (23:06 +0200)
commit8d1b3dfa09135affbbf27fb8babcf3c11415df49
treeb89b8bb19f1f3151c1e95a704d000d7378ed1067
parent4f28afe5456d8ed4a6fe0099337487043e29c912
[3.9] gh-135462: Fix quadratic complexity in processing special input in HTMLParser (GH-135464) (GH-135486)

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)
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]