libdw: Initialize ranges_base, add invalid DWARF test and fix expected output.
authorMark Wielaard <mark@klomp.org>
Thu, 24 May 2018 13:20:25 +0000 (15:20 +0200)
committerMark Wielaard <mark@klomp.org>
Thu, 24 May 2018 13:20:25 +0000 (15:20 +0200)
commitc2d14cc492aa7fd28740d5789fede64ce81a063b
tree8dc6ce6af3e6720848debfabb4cde5ad2e1361b4
parent144b73c49acf3ed894e4635aedb9b0d1208ade2e
libdw: Initialize ranges_base, add invalid DWARF test and fix expected output.

We never initialized the CU ranges_base, which meant we didn't actually
calculate it correctly. This caused bad ranges on some DIEs. The expected
output in the testcase was wrong. We also crashed on invalid dwarf.

Signed-off-by: Mark Wielaard <mark@klomp.org>
libdw/ChangeLog
libdw/dwarf_ranges.c
libdw/libdw_findcu.c
tests/ChangeLog
tests/get-units-invalid.c
tests/run-all-dwarf-ranges.sh