go/src
Matthew Dempsky 67722fea50 cmd/compile/internal/gc: reject invalid unsafe.Sizeof([0]byte{}[0])
Apply static bounds checking logic during type checking even to
zero-element arrays, but skip synthesized OINDEX nodes that the
compiler has asserted are within bounds (such as the ones generated
while desugaring ORANGE nodes).  This matches the logic in walkexpr
that also skips static bounds checking when Bounded is true.

Passes toolstash/buildall.

Fixes #12944.

Change-Id: I14ba03d71c002bf969d69783bec8d1a8e10e7d75
Reviewed-on: https://go-review.googlesource.com/15902
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-10-15 20:56:58 +00:00
..
archive
bufio
builtin
bytes
cmd cmd/compile/internal/gc: reject invalid unsafe.Sizeof([0]byte{}[0]) 2015-10-15 20:56:58 +00:00
compress
container
crypto
database/sql
debug
encoding
errors
expvar
flag
fmt
go
hash
html
image
index/suffixarray
internal
io
log
math
mime
net net/http/cgi: optimize internal function removeLeadingDuplicates a bit 2015-10-15 14:42:11 +00:00
os
path
reflect
regexp
runtime
sort
strconv
strings
sync
syscall
testing
text text/template: resolve non-empty interface 2015-10-15 05:02:27 +00:00
time
unicode
unsafe
vendor/golang.org/x/net/http2/hpack
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
iostest.bash
make.bash
make.bat
Make.dist
make.rc
nacltest.bash
race.bash
race.bat
run.bash
run.bat
run.rc