Skip to content

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

Merged
picnixz merged 1 commit into
python:mainfrom
picnixz:fix/ubsan/expat-132097
Apr 12, 2025
Merged

gh-132097: fix runtime UB when calling expat handlers#132265
picnixz merged 1 commit into
python:mainfrom
picnixz:fix/ubsan/expat-132097

Conversation

@picnixz

@picnixzpicnixz commented Apr 8, 2025

Copy link
Copy Markdown
Member

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.

Sign up for freeto 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

@picnixz