]> Cypherpunks repositories - gostls13.git/commit
debug/elf: check for multiplication overflow for shnum * shentsize
authorIan Lance Taylor <iant@golang.org>
Tue, 26 Nov 2024 23:26:25 +0000 (15:26 -0800)
committerGopher Robot <gobot@golang.org>
Wed, 27 Nov 2024 17:10:41 +0000 (17:10 +0000)
commit4f78aa9e8bc909395bb891b12586ea0a7c9dfff1
tree8bb18e5df7ffbde8db29adefafd8373ac6ff09f1
parent9dcf41908f9e315368fd043ccd9d67f2774b31e9
debug/elf: check for multiplication overflow for shnum * shentsize

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

For #47653
Fixes #70584

Change-Id: I8a69a27dcb5b258b88f8e01ebaf0ec20cfcd489b
Reviewed-on: https://go-review.googlesource.com/c/go/+/632035
Reviewed-by: Veronica Silina <veronicasilina@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/debug/elf/file.go