]> Cypherpunks.ru repositories - gostls13.git/commit
debug/elf: validate phentsize and shentsize
authorIan Lance Taylor <iant@golang.org>
Mon, 10 Oct 2022 21:07:10 +0000 (14:07 -0700)
committerGopher Robot <gobot@golang.org>
Wed, 12 Oct 2022 23:06:08 +0000 (23:06 +0000)
commit0ae042f977942a60d7955bc10bf654835e47e12a
treeee0d0b2a73008be27f6a88b32ad666d66d4e1597
parent79d0d330a9340d9e3ccb331660eb74f30e2edd01
debug/elf: validate phentsize and shentsize

No test case because the problem can only happen for invalid data. Let
the fuzzer find cases like this.

Fixes #56129

Change-Id: I6c81933781384c5e2c8ba0fd99cec50455b9664a
Reviewed-on: https://go-review.googlesource.com/c/go/+/441976
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Joedian Reid <joedian@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
src/debug/elf/file.go