Descriptioncmd/link: fix zig-zag decoding
The >>1 shift needs to happen before converting to int32, otherwise
large values will decode with an incorrect sign bit.
The <<31 shift can happen before or after, but before is consistent
with liblink and the go12symtab doc.
Bug demo at http://play.golang.org/p/jLrhPUakIu
Patch Set 1 #Patch Set 2 : diff -r f483391c3008 https://code.google.com/p/go #Patch Set 3 : diff -r f483391c3008 https://code.google.com/p/go #
MessagesTotal messages: 4
|