]> Cypherpunks repositories - gostls13.git/commit
cmd/6g: fix use of large integers as indexes or array sizes.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Tue, 6 Nov 2012 21:53:57 +0000 (22:53 +0100)
committerRémy Oudompheng <oudomphe@phare.normalesup.org>
Tue, 6 Nov 2012 21:53:57 +0000 (22:53 +0100)
commit1e233ad0759ad4e824a6bbb4bf2347d33cceba38
tree0125dca2df8fd93a32db911b5f142a02499a3d4e
parent3e80f9ce7bd102ff5b8ddb1c02bb1a5af9602452
cmd/6g: fix use of large integers as indexes or array sizes.

A check for smallintconst was missing before generating the
comparisons.

Fixes #4348.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6815088
src/cmd/6g/cgen.c
test/fixedbugs/issue4348.go [new file with mode: 0644]