We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
go version devel +b61b1d2c57 Sun Mar 18 16:53:53 2018 +0000 linux/amd64
package main import ( "bytes" "encoding/gob" "encoding/hex" ) const data = "4dffb503010102303001ff30000109010130010800010130010800010130" + "01ffb80001014a01ffb60001014b01ff860001013001ff860001013001ff" + "860001013001ff860001013001ffb80000001eff850401010e3030303030" + "30303030303030303001ff3000010c0104000016ffb70201010830303030" + "3030303001ff3000010c000030ffb6040405fcff00303030303030303030" + "303030303030303030303030303030303030303030303030303030303030" + "303030303030303030303030303030303030303030303030303030303030" + "30303030303030" type X struct { J *X K map[string]int } func main() { raw, _ := hex.DecodeString(data) gob.NewDecoder(bytes.NewReader(raw)).Decode(new(X)) }
crashes with:
fatal error: runtime: out of memory goroutine 1 [running]: runtime.mallocgc(0x3740000000, ...) runtime/malloc.go:895 runtime.newarray(..., 0x44000000, ...) runtime/malloc.go:1030 reflect.MakeMapWithSize(..., 0xff003030, ...) reflect/value.go:2136 encoding/gob.(*Decoder).decodeMap(...) encoding/gob/decode.go:562 encoding/gob.(*Decoder).decodeStruct(...) encoding/gob/decode.go:471 encoding/gob.(*Decoder).Decode(...) encoding/gob/decoder.go:187 main.main() gob.go:26
Found with go-fuzz. #19109
The text was updated successfully, but these errors were encountered:
Duplicate of #24308 - it's the same reflect.MakeMapWithSize story.
Sorry, something went wrong.
No branches or pull requests
go version devel +b61b1d2c57 Sun Mar 18 16:53:53 2018 +0000 linux/amd64
crashes with:
Found with go-fuzz. #19109
The text was updated successfully, but these errors were encountered: