]> Cypherpunks repositories - gostls13.git/commit
debug/dwarf: don't crash on negative range/rnglist offset
authorIan Lance Taylor <iant@golang.org>
Thu, 29 Sep 2022 22:00:08 +0000 (15:00 -0700)
committerGopher Robot <gobot@golang.org>
Sat, 1 Oct 2022 00:07:46 +0000 (00:07 +0000)
commit20da893e8392c5008f7583400accf2a2b9a2f8ff
tree9484ccd7e75e3fde5d5c08558d3a197441240f4a
parentcc90e45f1da8879163ae4ed3b1f7a5045cfc0685
debug/dwarf: don't crash on negative range/rnglist offset

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

Fixes #55948

Change-Id: I7ba40ba928d2a14d4ac5b39f966173f3868d4729
Reviewed-on: https://go-review.googlesource.com/c/go/+/436876
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Than McIntosh <thanm@google.com>
src/debug/dwarf/entry.go