]> Cypherpunks repositories - gostls13.git/commit
cmd/link/internal/ld: stricter object file decoding
authorMatthew Dempsky <mdempsky@google.com>
Fri, 10 Jul 2015 21:38:35 +0000 (14:38 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Fri, 10 Jul 2015 22:01:54 +0000 (22:01 +0000)
commit1082e2390e55519a576f21c0424f41246d232808
treea8ca7a6c644c8c3119606d672e19a2cff51cfb98
parent6a90b1d62100bd9fa8a4c6d566b990609c1c9d76
cmd/link/internal/ld: stricter object file decoding

Instead of silently truncating integers to their expected range, check
that they're within range and emit errors if not.  Intended to help
narrow down the cause of issue #11617.

Change-Id: Ia7b577270f8438ca7479262702371e26277f1ea7
Reviewed-on: https://go-review.googlesource.com/12050
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/link/internal/ld/objfile.go