Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test_elementtree with Expat 2.6.0 #407

Merged
merged 1 commit into from
Mar 2, 2024
Merged

Conversation

hroncok
Copy link
Contributor

@hroncok hroncok commented Feb 27, 2024

Feeding the parser by too small chunks defers parsing to prevent CVE-2023-52425. Future versions of Expat may be more reactive.

Heavily inspired by python/cpython@4a08e7b

We cannot use a @fails_with_expat_2_6_0 decorator
because the test passes in ETreePullTestCase.

Co-authored-by: @serhiy-storchaka

Feeding the parser by too small chunks defers parsing to prevent
CVE-2023-52425. Future versions of Expat may be more reactive.

Heavily inspired by python/cpython@4a08e7b

We cannot use a @fails_with_expat_2_6_0 decorator
because the test passes in ETreePullTestCase.

Co-Authored-By: Serhiy Storchaka <storchaka@gmail.com>
@scoder scoder merged commit 3ccc7d5 into lxml:master Mar 2, 2024
49 of 51 checks passed
@scoder
Copy link
Member

scoder commented Mar 2, 2024

Thanks

@hroncok hroncok deleted the expat2.6.0 branch March 4, 2024 08:27
@kloczek
Copy link

kloczek commented Mar 26, 2024

Is it possible to release new version because this PR has been merged? 🤔

scoder pushed a commit that referenced this pull request Mar 28, 2024
Feeding the parser by too small chunks defers parsing to prevent
CVE-2023-52425. Future versions of Expat may be more reactive.

Heavily inspired by python/cpython@4a08e7b

We cannot use a @fails_with_expat_2_6_0 decorator
because the test passes in ETreePullTestCase.

See python/cpython#115133
See GHSA-gh68-jm46-84rf
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants