]> Cypherpunks repositories - gostls13.git/commit
runtime: fix exit on Plan 9
authorDavid du Colombier <0intro@gmail.com>
Tue, 23 Dec 2014 10:09:15 +0000 (11:09 +0100)
committerDavid du Colombier <0intro@gmail.com>
Tue, 23 Dec 2014 18:54:39 +0000 (18:54 +0000)
commit10be797578925708afb140ceb771c8e2d6346332
tree96fc70de3871d64db5447fd4e19816fc219517fd
parent59cb2d9ca67ec4be6eb118a7faa8139eedadba80
runtime: fix exit on Plan 9

Add a nil byte at the end of the itoa buffer,
before calling gostringnocopy. This prevents
gostringnocopy to read past the buffer size.

Change-Id: I87494a8dd6ea45263882536bf6c0f294eda6866d
Reviewed-on: https://go-review.googlesource.com/2033
Reviewed-by: Aram Hăvărneanu <aram@mgk.ro>
src/runtime/os1_plan9.go