You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GOARCH="amd64"
GOOS="linux"
What did you do?
If you try to decode a []string larger than 655360 using encoding/gob, you get a panic as the slice helpers introduced in 1.20 did not extend the stringslice helper.
What version of Go are you using (
go version
)?1.20.2
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?
If you try to decode a
[]string
larger than655360
usingencoding/gob
, you get a panic as the slice helpers introduced in 1.20 did not extend the stringslice helper.https://go.dev/play/p/Xe0ajfykrSm?v=goprev (thanks to Jacob Oaks)
What did you expect to see?
Successful decoding (https://go.dev/play/p/Xe0ajfykrSm?v=goprev ) <- 1.19
What did you see instead?
Panic (https://go.dev/play/p/Xe0ajfykrSm) <- 1.20
The text was updated successfully, but these errors were encountered: