Skip to content

[3.13] gh-148441: Avoid integer overflow in Expat's CharacterDataHandler (GH-148904)#149637

Open
miss-islington wants to merge 2 commits into
python:3.13from
miss-islington:backport-bc1be4f-3.13
Open

[3.13] gh-148441: Avoid integer overflow in Expat's CharacterDataHandler (GH-148904)#149637
miss-islington wants to merge 2 commits into
python:3.13from
miss-islington:backport-bc1be4f-3.13

Conversation

@miss-islington

@miss-islington miss-islington commented May 10, 2026

Copy link
Copy Markdown
Contributor

(cherry picked from commit bc1be4f)

Co-authored-by: ByteFlow fakeshadow1337@gmail.com
Co-authored-by: Bénédikt Tran 10796600+picnixz@users.noreply.github.com

…er (pythonGH-148904)

(cherry picked from commit bc1be4f)

Co-authored-by: ByteFlow <fakeshadow1337@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
@read-the-docs-community

read-the-docs-community Bot commented May 10, 2026

Copy link
Copy Markdown

@picnixz picnixz disabled auto-merge May 10, 2026 13:59
@vstinner

Copy link
Copy Markdown
Member

cc @picnixz

@picnixz

picnixz commented Jun 10, 2026

Copy link
Copy Markdown
Member

Ah it was the issue #150397 you found. I don't have much time to check that, but I think we should first revert the commit and check why on your machine it fails. It should not though

Comment thread Lib/test/test_pyexpat.py
@support.requires_resource('cpu')
@support.requires_resource('walltime')
@support.bigmemtest(size=2**31, memuse=4, dry_run=False)
def test_large_character_data_does_not_crash(self):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
def test_large_character_data_does_not_crash(self):
def test_large_character_data_does_not_crash(self, size):

@picnixz

picnixz commented Jun 10, 2026

Copy link
Copy Markdown
Member

I'm sorry Victor but I really don't have bandwidth during the week, so could you maybe revert the test commit (my bad) please?

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.

5 participants