diff options
author | R?my Oudompheng <oudomphe@phare.normalesup.org> | 2012-12-06 08:09:17 +0100 |
---|---|---|
committer | R?my Oudompheng <oudomphe@phare.normalesup.org> | 2012-12-06 08:09:17 +0100 |
commit | 6ab047fa271d18f750b48a00c604e29f9f8c28b2 (patch) | |
tree | 5471ea3cf5fc93403ae0f7ada5d4420cb5779d26 /src/cmd/gc/yerr.h | |
parent | 07fe7ed437f8d73f09c04de46ca9898ac1d6d310 (diff) | |
download | go-6ab047fa271d18f750b48a00c604e29f9f8c28b2.tar.gz |
cmd/gc: do not overflow parser stack on a long chain of else if.
Fixes issue 2615.
R=dave, minux.ma, iant, daniel.morsing, rsc
CC=golang-dev
https://codereview.appspot.com/6847078
Diffstat (limited to 'src/cmd/gc/yerr.h')
-rw-r--r-- | src/cmd/gc/yerr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/gc/yerr.h b/src/cmd/gc/yerr.h index 256c48b0e..ff8410ba0 100644 --- a/src/cmd/gc/yerr.h +++ b/src/cmd/gc/yerr.h @@ -71,6 +71,6 @@ static struct { 112, LNAME, "nested func not allowed", - 615, ';', + 639, ';', "else must be followed by if or statement block" }; |