]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix register/offset calculation for trailing empty field case.
authorDavid Chase <drchase@google.com>
Thu, 1 Apr 2021 02:51:44 +0000 (22:51 -0400)
committerDavid Chase <drchase@google.com>
Thu, 1 Apr 2021 15:50:43 +0000 (15:50 +0000)
commit45ca9ef5c1235a80ceffca459cbf1bd47032b35f
tree8f3193883aa0016b52e8f7ae33eaf8b0f79b492b
parente6ac2df2b198f583780277a7cf96e3b0b61fe0a1
cmd/compile: fix register/offset calculation for trailing empty field case.

Includes test.
Long term, need to make the offending code be more in terms
of official types package offsets, instead of duplicating that
logic.

For #40724.

Change-Id: Id33a153f10aed3289cc48d1f99a8e0f6ece9474d
Reviewed-on: https://go-review.googlesource.com/c/go/+/306469
Trust: David Chase <drchase@google.com>
Run-TryBot: David Chase <drchase@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/compile/internal/abi/abiutils.go
test/abi/fuzz_trailing_zero_field.go [new file with mode: 0644]