libbacktrace: correct buffer overflow tests
authorIan Lance Taylor <iant@golang.org>
Wed, 2 Dec 2020 19:06:40 +0000 (11:06 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 2 Dec 2020 19:07:59 +0000 (11:07 -0800)
commit8f461a883bab76c9075ebb1083c9a23af24c201b
tree56ed361ebe09b63c534b7af03c6e6470f38b0a16
parent0a7dc4b6440faa8cd57c630f1e394a719469c399
libbacktrace: correct buffer overflow tests

* dwarf.c (resolve_string): Use > rather than >= to check whether
string index extends past buffer.
(resolve_addr_index): Similarly for address index.
libbacktrace/dwarf.c