1
0
mirror of https://github.com/golang/go synced 2024-09-28 18:14:29 -06:00

[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>
This commit is contained in:
Russ Cox 2017-09-14 11:10:23 -04:00
parent 89ba9e3541
commit 9f025cbdeb
8 changed files with 8 additions and 1 deletions

View File

@ -5,6 +5,7 @@
// +build linux,amd64
// +build !android
// +build !cmd_go_bootstrap
// +build !msan
package boring

View File

@ -5,6 +5,7 @@
// +build linux,amd64
// +build !android
// +build !cmd_go_bootstrap
// +build !msan
package boring

View File

@ -5,6 +5,7 @@
// +build linux,amd64
// +build !android
// +build !cmd_go_bootstrap
// +build !msan
package boring

View File

@ -5,6 +5,7 @@
// +build linux,amd64
// +build !android
// +build !cmd_go_bootstrap
// +build !msan
package boring

View File

@ -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

View File

@ -5,6 +5,7 @@
// +build linux,amd64
// +build !android
// +build !cmd_go_bootstrap
// +build !msan
package boring

View File

@ -5,6 +5,7 @@
// +build linux,amd64
// +build !android
// +build !cmd_go_bootstrap
// +build !msan
package boring

View File

@ -5,6 +5,7 @@
// +build linux,amd64
// +build !android
// +build !cmd_go_bootstrap
// +build !msan
package boring