-
-
Notifications
You must be signed in to change notification settings - Fork 527
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
metadata.Keys (and thus metadata.Undecoded) is invalid in some cases #417
Comments
This was referenced Jul 9, 2024
I've opened 2 PRs with 2 possible fixes for this bug. |
I also encountered this bug. Please fix it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sample code:
Playground: https://go.dev/play/p/Rr5bm5DbEql
Output:
Notice how the second and third value in that slice both point to
b
.Expected output:
The root cause seems to be somewhere near this append call. The result of
append
can return a slice backed by the same array if the capacity is available. See Go example code: https://go.dev/play/p/2FGKuCvCUKz.The text was updated successfully, but these errors were encountered: