]> Cypherpunks.ru repositories - gostls13.git/commit
debug/dwarf: don't crash on invalid range/rnglist offset
authorIan Lance Taylor <iant@golang.org>
Tue, 27 Sep 2022 01:24:03 +0000 (18:24 -0700)
committerGopher Robot <gobot@golang.org>
Tue, 27 Sep 2022 16:08:16 +0000 (16:08 +0000)
commitc929a5b855e5d1680a70c5e1ab11a4933655d66c
treef15f3809551aaebc4b6960d415cafd0a854ef207
parentd9d2ef991caabb3d2d0d419b652e7894cd2f4546
debug/dwarf: don't crash on invalid range/rnglist offset

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

Fixes #53529

Change-Id: I318c87795e545fe5a006d16b4d361cd4bf5d502d
Reviewed-on: https://go-review.googlesource.com/c/go/+/434936
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
src/debug/dwarf/entry.go