]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj, cmd/trace: restore bounds checks dropped in CL 56950
authorRuss Cox <rsc@golang.org>
Tue, 14 Nov 2017 03:32:19 +0000 (22:32 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 16 Nov 2017 16:29:08 +0000 (16:29 +0000)
commit918b98ca707e36ec84c0494b884ff0a02c9121c2
treed9b0268c31d1ba33b989b2e3b04387bc7689ee21
parentda21113b0c1d1b2979657d78320c31ffcb3c2c92
cmd/internal/obj, cmd/trace: restore bounds checks dropped in CL 56950

CL 56950 correctly identified code with checks that were impossible.
But instead of correcting the checks it deleted them.
This CL corrects the code to check what was meant.

Change-Id: Ic89222184ee4fa5cacccae12d750601a9438ac8d
Reviewed-on: https://go-review.googlesource.com/78113
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/internal/obj/sym.go
src/cmd/trace/trace.go