aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/runtime2.go
diff options
context:
space:
mode:
authorCarlos Amedee <carlos@golang.org>2024-11-04 11:45:05 -0500
committerMichael Knyszek <mknyszek@google.com>2024-11-15 20:08:08 +0000
commit252e9def65cd6230447fc11046d7f4b176ae2d4b (patch)
tree2f574ea22fa37bccf6be4d19c09204c880281310 /src/runtime/runtime2.go
parent09f9b5e361646ac0e21b4818ddfcf029a78a9e69 (diff)
downloadgo-252e9def65cd6230447fc11046d7f4b176ae2d4b.tar.xz
runtime: validate all calls to SetFinalizer
This change moves the check for a change in the memory management system to after the SetFinalizer parameters have been validated. Moving the check ensures that invalid parameters will never pass the validation checks. Change-Id: I9f1d3454f891f7b147c0d86b6720297172e08ef9 Reviewed-on: https://go-review.googlesource.com/c/go/+/625035 Reviewed-by: Michael Knyszek <mknyszek@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/runtime/runtime2.go')
0 files changed, 0 insertions, 0 deletions