]> Cypherpunks repositories - gostls13.git/commit
runtime: don't enable heap randomization if MSAN or ASAN is enabled
authorRoland Shoemaker <bracewell@google.com>
Wed, 17 Sep 2025 21:10:11 +0000 (21:10 +0000)
committerGopher Robot <gobot@golang.org>
Thu, 18 Sep 2025 00:10:14 +0000 (17:10 -0700)
commit77aac7bb75edc222dd7b350e8b76c20c79da5f43
tree61b239fc3c16bb9da513cbbef484516299e778dc
parent465b85eb760bfdb114f6b6ebccf374aba3977929
runtime: don't enable heap randomization if MSAN or ASAN is enabled

MSAN and ASAN do confusing things to the memory layout, which are likely
to conflict with heap base randomization, so if they are enabled,
ignore randomizedHeapBase64.

We already didn't turn it on when TSAN was enabled.

Change-Id: I41e59dfc33d8bb059c208a9595442571fb31eea3
Reviewed-on: https://go-review.googlesource.com/c/go/+/704856
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Auto-Submit: Roland Shoemaker <roland@golang.org>
src/runtime/export_test.go
src/runtime/malloc.go