diff options
author | Ian Lance Taylor <iant@golang.org> | 2014-01-21 06:12:54 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2014-01-21 06:12:54 -0800 |
commit | 70007b89f773c19e2baea291daafcdb83ab92a12 (patch) | |
tree | e300925f19fbfb533ba7c3120e29d3bbf9ffcafe /include | |
parent | d3d0c9567e5e88af00e58f6ee4dc288ac42315c2 (diff) | |
download | go-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.h | 2 |
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); |