-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
x/vuln: govulncheck panic: interface conversion: types.Type is *types.Interface, not *types.Array #57174
Comments
Thanks for reporting this! Do you have a minimal reproducible example? Or do you have some code in general we can use to reproduce the issue? |
Trying to get that now. The project triggering this on is closed source. |
Okay, this one has the issue: https://github.com/sixcolors/fiber-boilerplate |
Note: no panic when run with |
Same here, I get no errors for the newer version, but do get it for, say, 1.19.1. This is likely related to changes to the type checker, which ultimately affect call graph construction. Will investigate. Thanks for the info! |
Another repro: https://github.com/minio/mc/actions/runs/3656601095/jobs/6179226117 - fails on github.com/minio/mc master branch)
|
Change https://go.dev/cl/456436 mentions this issue: |
It seems to still fail after installing the latest
This did not happen like last week, nothing changed in this area of code. |
That is a different issue. It is related to the ssa package. I will investigate and see if there is a simple fix. If not, I will open a separate issue. Can you tell me the Go version you are using? |
its go1.19.3 @zpavlinovic
|
Make ssa instantiate generics. Fixes golang/go#57174 Change-Id: I2d2e28a48e3a64df3d4d415b4629fe3e0a1ba28d Reviewed-on: https://go-review.googlesource.com/c/vuln/+/456436 Reviewed-by: Fnu Harshavardhana <[email protected]> Run-TryBot: Zvonimir Pavlinovic <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Jonathan Amsterdam <[email protected]>
Make ssa instantiate generics. Fixes golang/go#57174 Change-Id: I2d2e28a48e3a64df3d4d415b4629fe3e0a1ba28d Reviewed-on: https://go-review.googlesource.com/c/vuln/+/456436 Reviewed-by: Fnu Harshavardhana <[email protected]> Run-TryBot: Zvonimir Pavlinovic <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Jonathan Amsterdam <[email protected]>
Make ssa instantiate generics. Fixes golang/go#57174 Change-Id: I2d2e28a48e3a64df3d4d415b4629fe3e0a1ba28d Reviewed-on: https://go-review.googlesource.com/c/vuln/+/456436 Reviewed-by: Fnu Harshavardhana <[email protected]> Run-TryBot: Zvonimir Pavlinovic <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Jonathan Amsterdam <[email protected]>
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?
What did you expect to see?
working scan
What did you see instead?
Type error panic.
The text was updated successfully, but these errors were encountered: