Skip to content

Fix NRE in XML SOAP serialization: array reference among unmapped members - #133689

Open
sstronin wants to merge 3 commits into
dotnet:mainfrom
sstronin:fix-nre-xml-soap-serializer-extraref
Open

sstronin wants to merge 3 commits into
dotnet:mainfrom
sstronin:fix-nre-xml-soap-serializer-extraref

Conversation

@sstronin

Copy link
Copy Markdown
Contributor

There is an NRE thrown in a specific case in SOAP serialization: unmapped members contain an array and a reference to it (they can be serialized, though they cannot be properly deserialized by the .NET implementation anyway). The supplied test shows the exact case. If the provided fix looks ambiguous, maybe a proper exception message could be the solution?

Found by Linux Verification Center (linuxtesting.org) with SVACE.

@dotnet-policy-service dotnet-policy-service Bot added the community-contribution Indicates that the PR has been added by a community member label Sep 11, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
13 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-Serialization community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant