summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2014-01-21 06:12:54 -0800
committerIan Lance Taylor <iant@golang.org>2014-01-21 06:12:54 -0800
commit70007b89f773c19e2baea291daafcdb83ab92a12 (patch)
treee300925f19fbfb533ba7c3120e29d3bbf9ffcafe /include
parentd3d0c9567e5e88af00e58f6ee4dc288ac42315c2 (diff)
downloadgo-70007b89f773c19e2baea291daafcdb83ab92a12.tar.gz
liblink: check for symgrow size too large
Many calls to symgrow pass a vlong value. Change the function to not implicitly truncate, and to instead give an error if the value is too large. R=golang-codereviews, gobot, rsc CC=golang-codereviews https://codereview.appspot.com/54010043
Diffstat (limited to 'include')
-rw-r--r--include/link.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/link.h b/include/link.h
index 2e23d20c7..32d158428 100644
--- a/include/link.h
+++ b/include/link.h
@@ -500,7 +500,7 @@ vlong setuint32(Link *ctxt, LSym *s, vlong r, uint32 v);
vlong setuint64(Link *ctxt, LSym *s, vlong r, uint64 v);
vlong setuint8(Link *ctxt, LSym *s, vlong r, uint8 v);
vlong setuintxx(Link *ctxt, LSym *s, vlong off, uint64 v, vlong wid);
-void symgrow(Link *ctxt, LSym *s, int32 siz);
+void symgrow(Link *ctxt, LSym *s, vlong siz);
// go.c
void double2ieee(uint64 *ieee, double native);