diff options
author | Ian Lance Taylor <iant@golang.org> | 2021-08-04 20:55:28 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2021-08-09 14:48:39 +0000 |
commit | 7aeaad5c86174f61b084d72d89fb02d7fc64391c (patch) | |
tree | 862487ba7d1fbf274b7a30b539e66922d2d2630c /misc/cgo/testsanitizers/msan_test.go | |
parent | 507cc341ec2cb96b0199800245f222146f799266 (diff) | |
download | go-7aeaad5c86174f61b084d72d89fb02d7fc64391c.tar.gz go-7aeaad5c86174f61b084d72d89fb02d7fc64391c.zip |
runtime/cgo: when using msan explicitly unpoison cgoCallers
This avoids an incorrect msan uninitialized memory report when using
runtime.SetCgoTraceback when a signal occurs while the fifth argument
register is undefined. See the issue for more details.
Fixes #47543
Change-Id: I3d1b673e2c93471ccdae0171a99b88b5a6062840
Reviewed-on: https://go-review.googlesource.com/c/go/+/339902
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'misc/cgo/testsanitizers/msan_test.go')
-rw-r--r-- | misc/cgo/testsanitizers/msan_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/misc/cgo/testsanitizers/msan_test.go b/misc/cgo/testsanitizers/msan_test.go index 2a3494fbfc..5ee9947a58 100644 --- a/misc/cgo/testsanitizers/msan_test.go +++ b/misc/cgo/testsanitizers/msan_test.go @@ -42,6 +42,7 @@ func TestMSAN(t *testing.T) { {src: "msan5.go"}, {src: "msan6.go"}, {src: "msan7.go"}, + {src: "msan8.go"}, {src: "msan_fail.go", wantErr: true}, } for _, tc := range cases { |