Skip to content

[3.15] Fix unchecked NULL returns in several C modules (GH-160213) - #160262

Merged
StanFromIreland merged 1 commit into
python:3.15from
StanFromIreland:backport-a930e52-3.15
Oct 22, 2026
Merged

StanFromIreland merged 1 commit into
python:3.15from
StanFromIreland:backport-a930e52-3.15

Conversation

@StanFromIreland

Copy link
Copy Markdown
Member

(cherry picked from commit a930e52)

Comment thread Modules/_elementtree.c
@@ -4210,6 +4210,9 @@ _elementtree_XMLParser__setevents_impl(XMLParserObject *self,
if (events_to_report == Py_None) {
/* default is "end" only */
target->end_event_obj = PyUnicode_FromString("end");

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This was the only conflict, on main this is self->end_event_obj:

cpython/Modules/_elementtree.c

Lines 4287 to 4288 in 1705e51

self->end_event_obj = PyUnicode_FromString("end");
if (self->end_event_obj == NULL) {

@StanFromIreland
StanFromIreland merged commit 230cc89 into python:3.15 Oct 22, 2026
78 of 81 checks passed
@StanFromIreland
StanFromIreland deleted the backport-a930e52-3.15 branch October 22, 2026 20:38
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