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

Issue 186279: code review 186279: Buffer overflow in 5a/6a/8a (Closed)

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

Description

Buffer overflow in 5a/6a/8a

Patch Set 1 #

Patch Set 2 : code review 186279: Buffer overflow in 5a/6a/8a #

Patch Set 3 : code review 186279: Buffer overflow in 5a/6a/8a #

Total comments: 1

Patch Set 4 : code review 186279: Buffer overflow in 5a/6a/8a #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -3 lines) Patch
M src/cmd/5a/lex.c View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M src/cmd/6a/a.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/cmd/6a/lex.c View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M src/cmd/8a/a.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/cmd/8a/lex.c View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 10
dpx
Hello rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 3 months ago (2010-01-22 18:08:40 UTC) #1
rsc
Instead of bothering with printing an error, how about using mal to allocate a big ...
14 years, 3 months ago (2010-01-22 18:27:07 UTC) #2
dpx
Hello rsc (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 3 months ago (2010-01-22 19:28:32 UTC) #3
rsc1
looks good http://codereview.appspot.com/186279/diff/15/1015 File src/cmd/5a/lex.c (right): http://codereview.appspot.com/186279/diff/15/1015#newcode145 src/cmd/5a/lex.c:145: ofile = malloc(strlen(file)+3); // +3 as len ...
14 years, 3 months ago (2010-01-22 22:14:46 UTC) #4
dpx
Hello rsc (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 3 months ago (2010-01-22 23:35:16 UTC) #5
dpx
Done. thanks! On 2010/01/22 22:14:46, rsc1 wrote: > looks good > > http://codereview.appspot.com/186279/diff/15/1015 > File ...
14 years, 3 months ago (2010-01-23 00:03:16 UTC) #6
dpx
14 years, 3 months ago (2010-01-23 00:11:09 UTC) #7
rsc
LGTM but it looks like you need to complete the CLA as described at http://golang.org/doc/contribute.html#copyright ...
14 years, 3 months ago (2010-01-23 00:24:11 UTC) #8
dpx
I just did the online CLA. Thanks! On 2010/01/23 00:24:11, rsc wrote: > LGTM > ...
14 years, 3 months ago (2010-01-23 00:30:50 UTC) #9
rsc
14 years, 3 months ago (2010-01-23 00:59:19 UTC) #10
*** Submitted as http://code.google.com/p/go/source/detail?r=8d7b27402e36 ***

5a/6a/8a: avoid fixed-sized file name buffer

R=rsc
CC=golang-dev
http://codereview.appspot.com/186279

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

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