go/src
Cherry Zhang 0a48185b43 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>
2017-09-19 20:45:24 +00:00
..
archive archive/tar: add Reader.WriteTo and Writer.ReadFrom 2017-09-18 16:18:17 +00:00
bufio
builtin
bytes bytes: removed unnecessary slicing on copy 2017-09-18 16:48:34 +00:00
cmd cmd/compile: fix stack frame info for calls in receiver slot 2017-09-19 18:35:24 +00:00
compress all: fix article typos 2017-09-15 02:39:16 +00:00
container container/heap: call t.Helper() in verify() 2017-09-13 17:22:00 +00:00
context all: fix article typos 2017-09-15 02:39:16 +00:00
crypto all: fix article typos 2017-09-15 02:39:16 +00:00
database/sql database/sql: fix Conn's doc typo 2017-09-08 13:49:40 +00:00
debug debug/macho: add missing file flags 2017-08-29 00:44:44 +00:00
encoding all: fix article typos 2017-09-15 02:39:16 +00:00
errors
expvar expvar: make (*Map).Init clear existing keys 2017-09-11 21:31:51 +00:00
flag flag: simplify arg logic in parseOne 2017-09-05 20:31:44 +00:00
fmt fmt: document verbs %b %d %o %x %X for printing pointers 2017-08-28 05:11:30 +00:00
go go/types, constant: remove superfluous import comment 2017-09-18 17:19:43 +00:00
hash
html html/template: explain URL filtering 2017-09-18 21:30:07 +00:00
image all: fix article typos 2017-09-15 02:39:16 +00:00
index/suffixarray
internal cmd/compile: add TestIntendedInlining from runtime 2017-09-13 18:10:31 +00:00
io io/ioutil: don't cap buffer size in ReadFile 2017-08-31 19:32:18 +00:00
log log: fix data race on log.Output 2017-09-19 20:35:24 +00:00
math math/rand: fix comment for Shuffle 2017-09-14 03:41:35 +00:00
mime mime: ignore key on ParseMediaType when value don't pass RFC 2231 check 2017-08-29 21:10:56 +00:00
net all: fix article typos 2017-09-15 02:39:16 +00:00
os all: fix article typos 2017-09-15 02:39:16 +00:00
path all: remove strings.Contains check around Replace 2017-09-12 08:58:28 +00:00
plugin runtime, plugin: error not throw on duplicate open 2017-09-09 16:26:33 +00:00
reflect reflect: fix pointer past-the-end in Call with zero-sized return value 2017-09-19 20:45:24 +00:00
regexp all: fix article typos 2017-09-15 02:39:16 +00:00
runtime runtime: improve fastrand with a better generator 2017-09-16 10:17:26 +00:00
sort sort: add examples for IntsAreSorted, Float64s and Float64sAreSorted 2017-08-28 17:29:29 +00:00
strconv all: fix article typos 2017-09-15 02:39:16 +00:00
strings
sync all: join some chained ifs to unindent code 2017-08-29 20:57:41 +00:00
syscall runtime: improve timers scalability on multi-CPU systems 2017-09-12 16:52:23 +00:00
testing testing: use time.Since instead of time.Now().Sub 2017-09-06 19:47:37 +00:00
text text/template: check ignored error in a test 2017-09-13 15:06:31 +00:00
time runtime: return deltimer early if timer.timersBucket is unset 2017-09-15 19:55:10 +00:00
unicode unicode: allow version to be passed by env var 2017-09-19 10:58:07 +00:00
unsafe all: remove some double spaces from comments 2017-08-26 15:09:09 +00:00
vendor/golang_org/x
Make.dist
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
iostest.bash misc/ios,src/iostest.bash: support GOIOS_DEVICE_ID 2017-08-28 16:37:25 +00:00
make.bash build: add `go env GOROOT` as default GOROOT_BOOTSTRAP value 2017-08-25 05:36:27 +00:00
make.bat
make.rc build: add `go env GOROOT` as default GOROOT_BOOTSTRAP value 2017-08-25 05:36:27 +00:00
naclmake.bash
nacltest.bash
race.bash
race.bat
run.bash
run.bat
run.rc