encoding/xml: segfault when unmarshaling struct containing a name field with ,attr tag #20953
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Uh oh!
There was an error while loading. Please reload this page.
I haven't looked into this, but removing the
,attr
tag makes it work. Having the,attr
tag there doesn't make sense anyways, but I would expect it to return an error, not segfault.What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?What did you do?
Playground
What did you expect to see?
XML output to stdout or an error returned if the struct was not able to be marshaled. Maybe an "xml: unsupported type" error similar to trying to marshal:
What did you see instead?
The text was updated successfully, but these errors were encountered: