]> Cypherpunks repositories - gostls13.git/commit
cmd/cc: grow some global arrays
authorRuss Cox <rsc@golang.org>
Fri, 24 Feb 2012 03:45:55 +0000 (22:45 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 24 Feb 2012 03:45:55 +0000 (22:45 -0500)
commit9984a5bca403ec14340a05c6fd57fcbefd96f4df
tree83350f4da43d732bc72e4dc24edf68ced9a62234
parent91bdbf591fe08c394f5ea3924774968202cde07b
cmd/cc: grow some global arrays

Avoids global array buffer overflows if they are
indexed using some of the values between NTYPE
and NALLTYPE.  It is entirely likely that not all of these
are necessary, but this is the C compiler and not worth
worrying much about.  This change takes up only a
few more bytes of memory and makes the behavior
deterministic.

Fixes #3078.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5693052
src/cmd/cc/cc.h
src/cmd/cc/com64.c
src/cmd/cc/funct.c
src/cmd/cc/sub.c