1
0
mirror of https://github.com/golang/go synced 2024-11-08 08:46:17 -07:00
go/src/cmd
Cherry Zhang 7bd0b61000 cmd/internal/goobj: accept int64 in readInt
The counter part, writeInt in cmd/internal/obj, writes int64s.
So the reader side should also read int64s. This may cause a
larger range of values being accepted, some of which should
not be that large. This is probably ok: for example, for
size/index/length, the very large value (due to corruption)
may be well past the end and causes other errors. And we did
not do much bound check anyway.

One exmaple where this matters is ARM32's object file. For one
type of relocation it encodes the instruction into Reloc.Add
field (which itself may be problematic and worth fix) and the
instruction encoding overflows int32, causing ARM32 object
file being rejected by goobj (and so objdump and nm) before.

Unskip ARM32 object file tests in goobj, nm, and objdump.

Updates #19811.

Change-Id: Ia46c2b68df5f1c5204d6509ceab6416ad6372315
Reviewed-on: https://go-review.googlesource.com/69010
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
2017-11-01 18:23:58 +00:00
..
addr2line
api all: revert "all: prefer strings.IndexByte over strings.Index" 2017-10-05 23:19:10 +00:00
asm cmd/asm, cmd/internal/obj/s390x, math: add "test under mask" instructions 2017-10-30 23:55:14 +00:00
buildid cmd/buildid: add new tool factoring out code needed by go command 2017-10-11 18:16:02 +00:00
cgo cmd/cgo: remove unnecessary nil check 2017-11-01 08:21:26 +00:00
compile cmd/compile: provide more names for stack slots 2017-11-01 16:10:25 +00:00
cover cmd/cover: don't try to attach directives to synthetic decls 2017-10-17 22:14:28 +00:00
dist cmd/go: pass package config to vet during "go vet" 2017-11-01 13:47:48 +00:00
doc all: revert "all: prefer strings.LastIndexByte over strings.LastIndex" 2017-10-05 23:19:42 +00:00
fix all: revert "all: prefer strings.LastIndexByte over strings.LastIndex" 2017-10-05 23:19:42 +00:00
go cmd/go: pass package config to vet during "go vet" 2017-11-01 13:47:48 +00:00
gofmt
internal cmd/internal/goobj: accept int64 in readInt 2017-11-01 18:23:58 +00:00
link compile, link: remove base address selector from DWARF range lists 2017-11-01 14:35:30 +00:00
nm cmd/internal/goobj: accept int64 in readInt 2017-11-01 18:23:58 +00:00
objdump cmd/internal/goobj: accept int64 in readInt 2017-11-01 18:23:58 +00:00
pack
pprof
trace cmd/trace: fix a javascript bug in handling import error 2017-10-20 16:34:50 +00:00
vendor
vet cmd/go: pass package config to vet during "go vet" 2017-11-01 13:47:48 +00:00