We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following program crashes with the panic:
package main import ( "encoding/xml" ) type X struct { D string `xml:",comment"` } func main() { data := []byte("<X><!------></X>") v := new(X) if xml.Unmarshal(data, v) != nil { return } if _, err := xml.Marshal(v); err != nil { panic(err) } }
panic: xml: comments must not contain "--" goroutine 1 [running]: main.main() xml.go:18 +0x129
The XML is malformed, as per XML spec:
http://www.w3.org/TR/REC-xml/#sec-comments Comment ::= ''
Unmarshal must reject it.
on commit 306f8f1
The text was updated successfully, but these errors were encountered:
See CL https://golang.org/cl/14173.
Sorry, something went wrong.
CL https://golang.org/cl/14173 mentions this issue.
97c859f
No branches or pull requests
The following program crashes with the panic:
The XML is malformed, as per XML spec:
http://www.w3.org/TR/REC-xml/#sec-comments
Comment ::= ''
Unmarshal must reject it.
on commit 306f8f1
The text was updated successfully, but these errors were encountered: