]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: check for array bounds overflow in slice expression
authorIan Lance Taylor <iant@golang.org>
Tue, 6 Nov 2012 19:35:58 +0000 (11:35 -0800)
committerIan Lance Taylor <iant@golang.org>
Tue, 6 Nov 2012 19:35:58 +0000 (11:35 -0800)
commit72bf3bc1763cd8dd07c511919ca86577720fc163
treefe54b59e33d52552685a81fc437403cae8972249
parent0ead18c59e357d79f10e3132d4b1b2fede577cbb
cmd/gc: check for array bounds overflow in slice expression

The test for this is test/index.go, which is not run by
default.  That test does not currently pass even after this is
applied, due to issue 4348.

Fixes #4344.

R=golang-dev, daniel.morsing, rsc
CC=golang-dev
https://golang.org/cl/6815085
src/cmd/gc/typecheck.c