diff options
author | Russ Cox <rsc@golang.org> | 2017-09-14 11:10:23 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2017-09-18 00:32:27 +0000 |
commit | 9f025cbdebcc80fe3ea7621755561483453c2fa2 (patch) | |
tree | 7e7aa03c4de1fa2f37a1de1ec17592116f666529 | |
parent | 89ba9e3541b12ce4e6e36682e5a0a534e0c0cd56 (diff) | |
download | go-9f025cbdebcc80fe3ea7621755561483453c2fa2.tar.gz go-9f025cbdebcc80fe3ea7621755561483453c2fa2.zip |
[dev.boringcrypto] crypto/internal/boring: fall back to standard crypto when using -msan
The syso is not compiled with -fsanitize=memory, so don't try to use it.
Otherwise the first time it calls out to memcmp, memcmp complains
that it is being asked to compare uninitialized memory.
Change-Id: I85ab707cfbe64eded8e110d4d6b40d1b75f50541
Reviewed-on: https://go-review.googlesource.com/63916
Reviewed-by: Adam Langley <agl@golang.org>
-rw-r--r-- | src/crypto/internal/boring/aes.go | 1 | ||||
-rw-r--r-- | src/crypto/internal/boring/boring.go | 1 | ||||
-rw-r--r-- | src/crypto/internal/boring/ecdsa.go | 1 | ||||
-rw-r--r-- | src/crypto/internal/boring/hmac.go | 1 | ||||
-rw-r--r-- | src/crypto/internal/boring/notboring.go | 2 | ||||
-rw-r--r-- | src/crypto/internal/boring/rand.go | 1 | ||||
-rw-r--r-- | src/crypto/internal/boring/rsa.go | 1 | ||||
-rw-r--r-- | src/crypto/internal/boring/sha.go | 1 |
8 files changed, 8 insertions, 1 deletions
diff --git a/src/crypto/internal/boring/aes.go b/src/crypto/internal/boring/aes.go index cd7064e686..12e5c38a06 100644 --- a/src/crypto/internal/boring/aes.go +++ b/src/crypto/internal/boring/aes.go @@ -5,6 +5,7 @@ // +build linux,amd64 // +build !android // +build !cmd_go_bootstrap +// +build !msan package boring diff --git a/src/crypto/internal/boring/boring.go b/src/crypto/internal/boring/boring.go index 1dd49fecfb..98aa851de7 100644 --- a/src/crypto/internal/boring/boring.go +++ b/src/crypto/internal/boring/boring.go @@ -5,6 +5,7 @@ // +build linux,amd64 // +build !android // +build !cmd_go_bootstrap +// +build !msan package boring diff --git a/src/crypto/internal/boring/ecdsa.go b/src/crypto/internal/boring/ecdsa.go index f931d732f4..6f6bcf6a4a 100644 --- a/src/crypto/internal/boring/ecdsa.go +++ b/src/crypto/internal/boring/ecdsa.go @@ -5,6 +5,7 @@ // +build linux,amd64 // +build !android // +build !cmd_go_bootstrap +// +build !msan package boring diff --git a/src/crypto/internal/boring/hmac.go b/src/crypto/internal/boring/hmac.go index 673b007e59..aecb1870f5 100644 --- a/src/crypto/internal/boring/hmac.go +++ b/src/crypto/internal/boring/hmac.go @@ -5,6 +5,7 @@ // +build linux,amd64 // +build !android // +build !cmd_go_bootstrap +// +build !msan package boring diff --git a/src/crypto/internal/boring/notboring.go b/src/crypto/internal/boring/notboring.go index 22f3553324..257aa3b8b4 100644 --- a/src/crypto/internal/boring/notboring.go +++ b/src/crypto/internal/boring/notboring.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build !linux !amd64 cmd_go_bootstrap android !cgo +// +build !linux !amd64 !cgo android cmd_go_bootstrap msan package boring diff --git a/src/crypto/internal/boring/rand.go b/src/crypto/internal/boring/rand.go index 71c644bdf4..c3fc27cc08 100644 --- a/src/crypto/internal/boring/rand.go +++ b/src/crypto/internal/boring/rand.go @@ -5,6 +5,7 @@ // +build linux,amd64 // +build !android // +build !cmd_go_bootstrap +// +build !msan package boring diff --git a/src/crypto/internal/boring/rsa.go b/src/crypto/internal/boring/rsa.go index c31554de0c..8a077b71df 100644 --- a/src/crypto/internal/boring/rsa.go +++ b/src/crypto/internal/boring/rsa.go @@ -5,6 +5,7 @@ // +build linux,amd64 // +build !android // +build !cmd_go_bootstrap +// +build !msan package boring diff --git a/src/crypto/internal/boring/sha.go b/src/crypto/internal/boring/sha.go index bc91f4a490..b8e6e57684 100644 --- a/src/crypto/internal/boring/sha.go +++ b/src/crypto/internal/boring/sha.go @@ -5,6 +5,7 @@ // +build linux,amd64 // +build !android // +build !cmd_go_bootstrap +// +build !msan package boring |