Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(439)

Issue 5693052: code review 5693052: cmd/cc: grow some global arrays (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 2 months ago by rsc
Modified:
13 years, 2 months ago
Reviewers:
CC:
golang-dev, bradfitz
Visibility:
Public.

Description

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 issue 3078.

Patch Set 1 #

Patch Set 2 : diff -r ccbda0007400 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r ccbda0007400 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r bc7a84869f47 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -29 lines) Patch
M src/cmd/cc/cc.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M src/cmd/cc/com64.c View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/cc/funct.c View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M src/cmd/cc/sub.c View 1 2 3 8 chunks +24 lines, -24 lines 0 comments Download

Messages

Total messages: 3
rsc
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 2 months ago (2012-02-24 00:45:48 UTC) #1
bradfitz
LGTM On Fri, Feb 24, 2012 at 11:45 AM, <rsc@golang.org> wrote: > Reviewers: golang-dev_googlegroups.com, > ...
13 years, 2 months ago (2012-02-24 00:47:11 UTC) #2
rsc
13 years, 2 months ago (2012-02-24 03:45:59 UTC) #3
*** Submitted as http://code.google.com/p/go/source/detail?r=7263bfdac502 ***

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 issue 3078.

R=golang-dev, bradfitz
CC=golang-dev
http://codereview.appspot.com/5693052
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b