]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libdw: Check there is .debug_info/types section data in __libdw_offdie.
authorMark Wielaard <mark@klomp.org>
Thu, 28 Dec 2017 23:34:14 +0000 (00:34 +0100)
committerMark Wielaard <mark@klomp.org>
Thu, 28 Dec 2017 23:34:14 +0000 (00:34 +0100)
commit4af2f2ed9269cd8d99d5c1a2c376e817a65e9e28
tree43f3f74bc3a9bde8b191f1e842b262c55d762ec4
parent0d100f63db640c533748a7adaa099499b2d2d4b0
libdw: Check there is .debug_info/types section data in __libdw_offdie.

If a Dwarf_Die was requested from an offset into a section data that
didn't exist we would crash. Crashing is bad even if given bad input.
Just return an error in that case.

Signed-off-by: Mark Wielaard <mark@klomp.org>
libdw/ChangeLog
libdw/dwarf_offdie.c