-
-
Notifications
You must be signed in to change notification settings - Fork 257
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
Runtime error in encoding/asn1 #373
Comments
I've got good news and bad news. The good news is that this obfuscated program works just fine on Go master (1.17), and it seems like the reason is https://go-review.googlesource.com/c/go/+/274234:
It's possible that The bad news is that a proper fix doesn't seem trivial. The stack trace up to where the error occurs is as follows:
In short, The reflection entrypoint in asn1 is here: https://cs.opensource.google/go/go/+/refs/tags/go1.16.6:src/encoding/asn1/asn1.go;l=1113;drc=refs%2Ftags%2Fgo1.16.6 But since its argument is of type The proper fix would be to record that |
Code to reproduce (simple PEM certificate decoding):
Garble Command:
Probably something broke because of the heavy use of reflection in encoding/asn1
The text was updated successfully, but these errors were encountered: