]> Cypherpunks repositories - gostls13.git/commit
debug/elf: check for negative shoff and phoff fields
authorIan Lance Taylor <iant@golang.org>
Thu, 31 Mar 2022 01:47:11 +0000 (18:47 -0700)
committerIan Lance Taylor <iant@golang.org>
Thu, 31 Mar 2022 14:47:33 +0000 (14:47 +0000)
commit109a18dce7ef8ecb2aa60cef25362ebd05661ea0
tree2bc677c9c48577336f2b23a8d5e61ec085946a46
parenta9d13a9c230bafba64469f126202315ba4d24eea
debug/elf: check for negative shoff and phoff fields

No test because we could add an infinite number of tests of bogus data.

For #47653
Fixes #52035

Change-Id: Iec7e2fe23f2dd1cf14bad2475422f243f51028f5
Reviewed-on: https://go-review.googlesource.com/c/go/+/396880
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Than McIntosh <thanm@google.com>
src/debug/elf/file.go