diff options
author | Cherry Zhang <cherryyz@google.com> | 2017-08-31 22:02:37 -0400 |
---|---|---|
committer | Cherry Zhang <cherryyz@google.com> | 2017-09-19 20:45:24 +0000 |
commit | 0a48185b4383fac8d260112efa261112f3d41ee2 (patch) | |
tree | 0f291f535514d47f5b22fc3a5a43590563860cdc /src/cmd/compile/internal/ssa/export_test.go | |
parent | d1731f8cbc1adde72a2b2e7513b6ca73476c7f0d (diff) | |
download | go-0a48185b4383fac8d260112efa261112f3d41ee2.tar.gz go-0a48185b4383fac8d260112efa261112f3d41ee2.zip |
reflect: fix pointer past-the-end in Call with zero-sized return value
If a function with nonzero frame but zero-sized return value is
Call'd, we may write a past-the-end pointer in preparing the
return Values. Fix by return the zero value for zero-sized
return value.
Fixes #21717.
Change-Id: I5351cd86d898467170a888b4c3fc9392f0e7aa3b
Reviewed-on: https://go-review.googlesource.com/60811
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'src/cmd/compile/internal/ssa/export_test.go')
0 files changed, 0 insertions, 0 deletions