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

Issue 4151043: code review 4151043: syscall: do not use NULL for zero-length read, write (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 1 month ago by rsc
Modified:
14 years, 1 month ago
Reviewers:
CC:
r, gri, golang-dev
Visibility:
Public.

Description

syscall: do not use NULL for zero-length read, write Avoids problems running Linux binaries under QEMU.

Patch Set 1 #

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

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

Total comments: 1

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -6 lines) Patch
M src/pkg/syscall/mksyscall.sh View 1 1 chunk +3 lines, -6 lines 0 comments Download
M src/pkg/syscall/syscall.go View 1 1 chunk +4 lines, -0 lines 0 comments Download
M src/pkg/syscall/zsyscall_darwin_386.go View 1 10 chunks +20 lines, -0 lines 0 comments Download
M src/pkg/syscall/zsyscall_darwin_amd64.go View 1 10 chunks +20 lines, -0 lines 0 comments Download
M src/pkg/syscall/zsyscall_freebsd_386.go View 1 10 chunks +20 lines, -0 lines 0 comments Download
M src/pkg/syscall/zsyscall_freebsd_amd64.go View 1 10 chunks +20 lines, -0 lines 0 comments Download
M src/pkg/syscall/zsyscall_linux_386.go View 1 11 chunks +22 lines, -0 lines 0 comments Download
M src/pkg/syscall/zsyscall_linux_amd64.go View 1 13 chunks +26 lines, -0 lines 0 comments Download
M src/pkg/syscall/zsyscall_linux_arm.go View 1 11 chunks +22 lines, -0 lines 0 comments Download

Messages

Total messages: 5
rsc
Hello r (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg
14 years, 1 month ago (2011-02-09 16:19:16 UTC) #1
gri
FYI http://codereview.appspot.com/4151043/diff/5001/src/pkg/syscall/zsyscall_darwin_386.go File src/pkg/syscall/zsyscall_darwin_386.go (right): http://codereview.appspot.com/4151043/diff/5001/src/pkg/syscall/zsyscall_darwin_386.go#newcode121 src/pkg/syscall/zsyscall_darwin_386.go:121: var _p0 unsafe.Pointer _p0 := unsafe.Pointer(&_zero) and get ...
14 years, 1 month ago (2011-02-09 18:16:30 UTC) #2
r
LGTM but i'm curious how you figured it out
14 years, 1 month ago (2011-02-09 18:39:02 UTC) #3
rsc
On Wed, Feb 9, 2011 at 13:39, <r@golang.org> wrote: > LGTM but i'm curious how ...
14 years, 1 month ago (2011-02-09 19:09:19 UTC) #4
rsc
14 years, 1 month ago (2011-02-09 19:28:48 UTC) #5
*** Submitted as 5e1e2010ca05 ***

syscall: do not use NULL for zero-length read, write

Avoids problems running Linux binaries under QEMU.

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

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