]> Cypherpunks repositories - gostls13.git/commit
cmd/ld: skip 0-length write in cwrite
authorRuss Cox <rsc@golang.org>
Thu, 6 Dec 2012 05:00:20 +0000 (00:00 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 6 Dec 2012 05:00:20 +0000 (00:00 -0500)
commit9d2b0e86c8338d8e8f285926752ecca642ce23da
treec7213e174977523907bb129cf8eb74ff833e0b32
parentb46d56ae7215ca1f56f4556f76408bab26a85669
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.

R=ken2
CC=golang-dev
https://golang.org/cl/6862051
src/cmd/ld/lib.c