Skip to content

Fix SOAP map decode to check xmlValue for missing value#9743

Open
cuiweixie wants to merge 1 commit intofacebook:masterfrom
cuiweixie:fix/soap-map-decode-check-value-node
Open

Fix SOAP map decode to check xmlValue for missing value#9743
cuiweixie wants to merge 1 commit intofacebook:masterfrom
cuiweixie:fix/soap-map-decode-check-value-node

Conversation

@cuiweixie
Copy link
Copy Markdown

Summary

In to_zval_map(), after loading the value child into xmlValue, the next guard still tested xmlKey. That does not match the "missing value" error and can miss a missing value node.

Test plan

  • Run or add a SOAP encoding test if one fits this path; otherwise rely on code inspection and CI.

to_zval_map() read the value node into xmlValue but tested xmlKey in the
following guard, so a missing value was not detected correctly.
@meta-cla meta-cla bot added the CLA Signed label Mar 28, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Mar 28, 2026

@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this in D98601482. (Because this pull request was imported automatically, there will not be any future comments.)

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