]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: disallow converting string to notinheap slice
authorMatthew Dempsky <mdempsky@google.com>
Tue, 16 Oct 2018 22:31:07 +0000 (15:31 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Fri, 2 Nov 2018 19:53:59 +0000 (19:53 +0000)
commitb2c397e53798fad7395fa8c67f66d9200d663ae0
treef886936cfde34a95b2e110337d5b8c64de9fce26
parent2764d5ee7b23ae1caf2a4cd4506116a1b9efbf66
cmd/compile: disallow converting string to notinheap slice

Unlikely to happen in practice, but easy enough to prevent and might
as well do so for completeness.

Fixes #28243.

Change-Id: I848c3af49cb923f088e9490c6a79373e182fad08
Reviewed-on: https://go-review.googlesource.com/c/142719
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Austin Clements <austin@google.com>
src/cmd/compile/internal/gc/subr.go
test/notinheap.go