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

Issue 7876044: code review 7876044: cmd/cc, cmd/ld: do not overflow strings in symbol lookup. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years ago by remyoudompheng
Modified:
12 years ago
Reviewers:
CC:
golang-dev, dave_cheney.net, minux1
Visibility:
Public.

Description

cmd/cc, cmd/ld: do not overflow strings in symbol lookup.

Patch Set 1 #

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

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

Total comments: 4

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

Patch Set 5 : diff -r 010e981623de https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -4 lines) Patch
M src/cmd/cc/lexbody View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/ld/lib.c View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 7
remyoudompheng
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
12 years ago (2013-03-24 08:42:58 UTC) #1
dave_cheney.net
Thank you for fixing this. https://codereview.appspot.com/7876044/diff/4001/src/cmd/cc/lexbody File src/cmd/cc/lexbody (right): https://codereview.appspot.com/7876044/diff/4001/src/cmd/cc/lexbody#newcode266 src/cmd/cc/lexbody:266: if(strlen(s->name) == l-1 && ...
12 years ago (2013-03-24 12:00:52 UTC) #2
minux1
https://codereview.appspot.com/7876044/diff/4001/src/cmd/cc/lexbody File src/cmd/cc/lexbody (right): https://codereview.appspot.com/7876044/diff/4001/src/cmd/cc/lexbody#newcode266 src/cmd/cc/lexbody:266: if(strlen(s->name) == l-1 && memcmp(s->name, symb, l) == 0) ...
12 years ago (2013-03-24 12:13:38 UTC) #3
remyoudompheng
Hello golang-dev@googlegroups.com, dave@cheney.net, minux.ma@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
12 years ago (2013-03-24 12:33:43 UTC) #4
remyoudompheng
https://codereview.appspot.com/7876044/diff/4001/src/cmd/cc/lexbody File src/cmd/cc/lexbody (right): https://codereview.appspot.com/7876044/diff/4001/src/cmd/cc/lexbody#newcode266 src/cmd/cc/lexbody:266: if(strlen(s->name) == l-1 && memcmp(s->name, symb, l) == 0) ...
12 years ago (2013-03-24 12:35:41 UTC) #5
minux1
LGTM.
12 years ago (2013-03-24 12:46:11 UTC) #6
remyoudompheng
12 years ago (2013-03-25 07:20:27 UTC) #7
*** Submitted as https://code.google.com/p/go/source/detail?r=d448734315d3 ***

cmd/cc, cmd/ld: do not overflow strings in symbol lookup.

R=golang-dev, dave, minux.ma
CC=golang-dev
https://codereview.appspot.com/7876044
Sign in to reply to this message.

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