golang/go

x/net/icmp: runtime error: slice bounds out of range

mikioh opened this issue · 1 comments

Good catch, go-fuzz!

panic: runtime error: slice bounds out of range [recovered]
    panic: runtime error: slice bounds out of range

goroutine 6 [running]:
golang.org/x/net/icmp.(*InterfaceInfo).parseName(0xc20800b1e0, 0xc20807a130, 0x4, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0)
    /swdev/src/golang.org/x/net/icmp/interface.go:181 +0x2d8
golang.org/x/net/icmp.parseInterfaceInfo(0xc20807a130, 0x4, 0x10, 0x0, 0x0, 0x0, 0x0)
    /swdev/src/golang.org/x/net/icmp/interface.go:221 +0x450
golang.org/x/net/icmp.parseExtensions(0xc20807a12c, 0x8, 0x14, 0x80, 0x0, 0x0, 0x0, 0x371280, 0x0, 0x0)
    /swdev/src/golang.org/x/net/icmp/extension.go:78 +0x5f0
golang.org/x/net/icmp.parseMultipartMessageBody(0x1, 0xc20807a0a4, 0x90, 0x9c, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
    /swdev/src/golang.org/x/net/icmp/multipart.go:102 +0x154
golang.org/x/net/icmp.parseParamProb(0x1, 0xc20807a0a4, 0x90, 0x9c, 0x0, 0x0, 0x0, 0x0)
    /swdev/src/golang.org/x/net/icmp/paramprob.go:55 +0x36f
golang.org/x/net/icmp.ParseMessage(0x1, 0xc20807a0a0, 0x94, 0xa0, 0x94, 0x0, 0x0)
    /swdev/src/golang.org/x/net/icmp/message.go:142 +0x518

CL https://golang.org/cl/10378 mentions this issue.