New issue
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
encoding/xml: panic: reflect: call of reflect.Value.CanInterface on zero Value #53350
Comments
@catenacyber I think you should pass the address of the |
I think this should return an error like json: https://go.dev/play/p/kNjctQM6294 |
@catenacyber can assign it to me ? |
Change https://go.dev/cl/412634 mentions this issue: |
…casue panic the interface which data marshal into should be a non-nil pointer. just like json Unmarshal function, when the input interface is not a pointer or nil pointer, the Unmarshal function should return an error instead panic. Fixes golang#53350
…casue panic the interface which data marshal into should be a non-nil pointer. just like json Unmarshal function, when the input interface is not a pointer or nil pointer, the Unmarshal function should return an error instead panic. Fixes golang#53350
…casue panic the interface which data marshal into should be a non-nil pointer. just like json Unmarshal function, when the input interface is not a pointer or nil pointer, the Unmarshal function should return an error instead panic. Fixes golang#53350
the interface which data marshal into should be a non-nil pointer. just like json Unmarshal function, when the input interface is not a pointer or nil pointer, the Unmarshal function should return an error instead panic. Fixes golang#53350
the interface which data marshal into should be a non-nil pointer. just like json Unmarshal function, when the input interface is not a pointer or nil pointer, the Unmarshal function should return an error instead panic. Fixes golang#53350
Fixes golang#53350 Change-Id: Id5e1f4016db5f1d4349ee1a76a9dfe3aeae83cee GitHub-Last-Rev: 45add12 GitHub-Pull-Request: golang#53407 Reviewed-on: https://go-review.googlesource.com/c/go/+/412634 Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Run-TryBot: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Alex Rakoczy <alex@golang.org>
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Run https://go.dev/play/p/ra2dv8stCSW
What did you expect to see?
The program finishing and printing somme dummy data
What did you see instead?
Is this the expected behavior ?
Found by https://github.com/catenacyber/ngolo-fuzzing on oss-fuzz
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=47962
The text was updated successfully, but these errors were encountered: