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

Issue 6862051: code review 6862051: cmd/ld: skip 0-length write in cwrite (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 8 months ago by rsc
Modified:
12 years, 8 months ago
Reviewers:
ken3, lucio
CC:
ken2, golang-dev
Visibility:
Public.

Description

cmd/ld: skip 0-length write in cwrite The 0-length part is fine, but some callers that write 0 bytes also pass nil as the data pointer, and the Plan 9 kernel kills the process with 'invalid address in sys call' in that case.

Patch Set 1 #

Patch Set 2 : diff -r f4d54bcd5313 https://code.google.com/p/go/ #

Patch Set 3 : diff -r f57128234e31 https://code.google.com/p/go/ #

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

Messages

Total messages: 5
rsc
Hello ken2 (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
12 years, 8 months ago (2012-12-06 05:00:17 UTC) #1
rsc
*** Submitted as https://code.google.com/p/go/source/detail?r=e2d1e2a9e609 *** cmd/ld: skip 0-length write in cwrite The 0-length part is ...
12 years, 8 months ago (2012-12-06 05:00:29 UTC) #2
lucio
Russ, shouldn't you let the "less than zero" potential error be intercepted by the invocation ...
12 years, 8 months ago (2012-12-06 06:24:19 UTC) #3
rsc
On Thu, Dec 6, 2012 at 12:07 AM, Lucio De Re <lucio.dere@gmail.com> wrote: > Russ, ...
12 years, 8 months ago (2012-12-06 06:24:24 UTC) #4
ken3
12 years, 8 months ago (2012-12-06 11:08:49 UTC) #5
lgtm
Sign in to reply to this message.

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