]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.11] runtime: don't scan go'd function args past length of ptr...
authorKeith Randall <keithr@alum.mit.edu>
Thu, 3 Jan 2019 20:13:53 +0000 (12:13 -0800)
committerKatie Hockman <katie@golang.org>
Fri, 4 Jan 2019 20:52:51 +0000 (20:52 +0000)
commit8455a848e7e98da060ec3979c9cf32c82bae9a20
tree87a62e0b35bc3c7a0aefd8840a3808c93dffdd81
parent84f1e9214470af0998b7774f8abc995c3bd06cbb
[release-branch.go1.11] runtime: don't scan go'd function args past length of ptr bitmap

Use the length of the bitmap to decide how much to pass to the
write barrier, not the total length of the arguments.

The test needs enough arguments so that two distinct bitmaps
get interpreted as a single longer bitmap.

Fixes #29565

Change-Id: I78f3f7f9ec89c2ad4678f0c52d3d3def9cac8e72
Reviewed-on: https://go-review.googlesource.com/c/156123
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
Reviewed-on: https://go-review.googlesource.com/c/156359
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/proc.go
test/fixedbugs/issue29362b.go [new file with mode: 0644]