]> Cypherpunks repositories - gostls13.git/commit
internal/syscall/windows/registry: make '-gcflags=all=-d=checkptr' flag work
authorAlex Brainman <alex.brainman@gmail.com>
Sun, 27 Oct 2019 06:13:45 +0000 (17:13 +1100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 29 Oct 2019 06:10:59 +0000 (06:10 +0000)
commit7067aa1c106d000e99b62e4804118c7bceeed680
tree1d167c25272bffe585190d64476bca6e27ea0902
parent25f5044e46f5d2c9e870e37c95a13bf01c63a6b7
internal/syscall/windows/registry: make '-gcflags=all=-d=checkptr' flag work

Mostly replaced [:x] slice operation with [:x:x]. 

According to @mdempsky, compiler specially recognizes when you combine
a pointer conversion with a full slice operation in a single expression
and makes an exception.

Updates golang/go#34972

Change-Id: I07d9de3b31da254d55f50d14c18155f8fc8f3ece
Reviewed-on: https://go-review.googlesource.com/c/go/+/203442
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Jason A. Donenfeld <Jason@zx2c4.com>
src/internal/syscall/windows/registry/value.go