case Slice:
// Element flag same as Elem of Ptr.
// Addressable, indirect, possibly read-only.
s := (*unsafeheader.Slice)(v.ptr)
if uint(i) >= uint(s.Len) {
panic("reflect: slice index out of range")
}
This was in prod so I'm not sure what the exact input was, but let me know if there's anything else that would be relevant.
I'm calling
Sdump
on a complex struct and it seems to go out of bounds on a slice:Here's the code block in
value
that it's hitting:This was in prod so I'm not sure what the exact input was, but let me know if there's anything else that would be relevant.
Thanks!