libdw: Check validity of dwarf_getabbrev arguments.
authorMark Wielaard <mark@klomp.org>
Fri, 8 Jun 2018 18:45:48 +0000 (20:45 +0200)
committerMark Wielaard <mark@klomp.org>
Mon, 11 Jun 2018 06:35:51 +0000 (08:35 +0200)
commit95e3d07a6742992cf22e239389cab12ba0d4d95d
tree36da03c165aaad8e191b4e41b85cfa3d672a1556
parentb958e6b0fbe6aa246bbbbdec34487476b01d1f2e
libdw: Check validity of dwarf_getabbrev arguments.

When the given Dwarf_Die was invalid we might crash and when the offset
was totally bogus we might succeed with a random abbrev.

Signed-off-by: Mark Wielaard <mark@klomp.org>
libdw/ChangeLog
libdw/dwarf_getabbrev.c
tests/ChangeLog
tests/get-units-invalid.c
tests/show-abbrev.c