Skip to content

gh-132097: fix runtime UB when calling expat handlers #132265

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

Merged
merged 1 commit into from
Apr 12, 2025

Conversation

picnixz
Copy link
Member

@picnixz picnixz commented Apr 8, 2025

I've also changed a bit the code style because most of the file is using TYPE *NAME instead of TYPE* NAME declarations. And also, there were already inconsistencies in the affected functions. I've also changed _XMLParser_CAST into XMLParserObject_CAST because it's easier to remember <NAME>_<CAST> instead of <SOMETHING_ELSE>_<CAST> (anyway it was me who introduced that macro last year but I didn't think of that at that time).

Review without whitespace changes: https://github.com/python/cpython/pull/132265/files?diff=split&w=1.

@picnixz picnixz merged commit e0dffc5 into python:main Apr 12, 2025
47 checks passed
@picnixz picnixz deleted the fix/ubsan/expat-132097 branch April 12, 2025 07:20
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.

1 participant