]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix uninitialized memory during type switch assertE2I2
authorRuss Cox <rsc@golang.org>
Thu, 30 Jul 2015 04:46:42 +0000 (00:46 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 30 Jul 2015 05:21:56 +0000 (05:21 +0000)
commitc4092ac3981413959eb62f7515c263531fd832da
tree8658976f7b31a42937edb7634a8a7b71f30df433
parentbfac8623d554043c710a2a6b8fe971167d7700c0
cmd/compile: fix uninitialized memory during type switch assertE2I2

Fixes arm64 builder crash.

The bug is possible on all architectures; you just have to get lucky
and hit a preemption or a stack growth on entry to assertE2I2.
The test stacks the deck.

Change-Id: I8419da909b06249b1ad15830cbb64e386b6aa5f6
Reviewed-on: https://go-review.googlesource.com/12890
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
src/cmd/compile/internal/gc/swt.go
src/runtime/export_test.go
src/runtime/gc_test.go
src/runtime/iface.go