]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: don't walk field-name syntax in esc.go
authorDavid Chase <drchase@google.com>
Fri, 19 Feb 2016 17:06:31 +0000 (12:06 -0500)
committerDavid Chase <drchase@google.com>
Fri, 19 Feb 2016 19:40:49 +0000 (19:40 +0000)
commitfb2af2b35b8d2ad832f2398e981ea78c64b0663b
treea9cb97ba39cd63a57adeb5e1dd598e92f2c8f1a1
parent0e34737c9aea6680b0a2a135cdf80557d61b83ce
cmd/compile: don't walk field-name syntax in esc.go

Walking the field name as if it were an expression
caused a called to haspointers with a TFIELD, which panics.
Trigger was a field at a large offset within a large struct,
combined with a struct literal expression mentioning that
field.

Fixes #14405

Change-Id: I4589badae27cf3d7cf365f3a66c13447512f41f9
Reviewed-on: https://go-review.googlesource.com/19699
Reviewed-by: Russ Cox <rsc@golang.org>
Run-TryBot: David Chase <drchase@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/gc/esc.go
src/cmd/compile/internal/gc/fmt.go
test/fixedbugs/issue14405.go [new file with mode: 0644]