Skip to content

gh-153803: Raise ResponseError for a malformed struct in xmlrpc.client#153805

Open
tonghuaroot wants to merge 2 commits into
python:mainfrom
tonghuaroot:xmlrpc-loads-malformed-struct
Open

gh-153803: Raise ResponseError for a malformed struct in xmlrpc.client#153805
tonghuaroot wants to merge 2 commits into
python:mainfrom
tonghuaroot:xmlrpc-loads-malformed-struct

Conversation

@tonghuaroot

@tonghuaroot tonghuaroot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Unmarshaller.end_struct iterates stacked name/value items in pairs. A <member> missing its <value> leaves an odd item count, so items[i+1] raises a raw IndexError. Guard with len(items) % 2 and raise ResponseError, matching the sibling checks at lines 640 and 663.

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