cmd/compile: checkptr false positive from (*[Big]T)(ptr)[:n:n] pattern #46938
checkptr has special case logic for recognizing the pattern
However, currently the checkptr instrumentation is inserted before the slice operation has validated
This issue has existed since checkptr's inclusion in Go 1.14, and I'm not aware of any user reports about it. It's also easy to workaround.
Marking for Go 1.18.
The text was updated successfully, but these errors were encountered: