]> Cypherpunks repositories - gostls13.git/commit
debug/pe: fix off by one error in valid symbol index test
authorThan McIntosh <thanm@google.com>
Mon, 25 Apr 2022 15:22:10 +0000 (11:22 -0400)
committerThan McIntosh <thanm@google.com>
Mon, 25 Apr 2022 15:42:53 +0000 (15:42 +0000)
commit94f25ec94920beee5fb2dd4c0cbf4cbff28f14e6
tree877307a67b1e2ffa5b5da02421540aab1fc84e6a
parent6b1d9aefa8fce9f9c83f46193bec43b9b70068ce
debug/pe: fix off by one error in valid symbol index test

Fix an off-by-one error in COFFSymbolReadSectionDefAux, specifically
the code that tests whether a symbol index is valid.

Fixes #52525.

Change-Id: I1b6e5dacfd99249c694bef5ae606e90fdb2ef521
Reviewed-on: https://go-review.googlesource.com/c/go/+/402156
Run-TryBot: Than McIntosh <thanm@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/debug/pe/symbol.go