aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/mgcwork.go
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2017-12-03 19:28:28 -0500
committerAustin Clements <austin@google.com>2018-02-15 21:12:11 +0000
commitb1d94c118fd163381537a22be4913742103baece (patch)
tree04aeca443a621a3cecf8a8e990c3015007d92b53 /src/runtime/mgcwork.go
parent981d0495b7ed6e1a5fb0fba818bdc2bf9d4b13fa (diff)
downloadgo-b1d94c118fd163381537a22be4913742103baece.tar.gz
go-b1d94c118fd163381537a22be4913742103baece.zip
runtime: validate lfnode addresses
Change-Id: Ic8c506289caaf6218494e5150d10002e0232feaa Reviewed-on: https://go-review.googlesource.com/85876 Run-TryBot: Austin Clements <austin@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rick Hudson <rlh@golang.org>
Diffstat (limited to 'src/runtime/mgcwork.go')
-rw-r--r--src/runtime/mgcwork.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime/mgcwork.go b/src/runtime/mgcwork.go
index c6634fc78c..99771e2e57 100644
--- a/src/runtime/mgcwork.go
+++ b/src/runtime/mgcwork.go
@@ -400,6 +400,7 @@ func getempty() *workbuf {
for i := uintptr(0); i+_WorkbufSize <= workbufAlloc; i += _WorkbufSize {
newb := (*workbuf)(unsafe.Pointer(s.base() + i))
newb.nobj = 0
+ lfnodeValidate(&newb.node)
if i == 0 {
b = newb
} else {