readelf: Check there is enough data to read DWARF line opcodes arguments.
authorMark Wielaard <mark@klomp.org>
Fri, 1 Feb 2019 08:08:14 +0000 (09:08 +0100)
committerMark Wielaard <mark@klomp.org>
Fri, 1 Feb 2019 08:08:14 +0000 (09:08 +0100)
commitcad9595592730fd8c9d0d9236d38f62ec8cfbcef
treeeafd186a9011db0adb8a79ac13a87e54c3439e9b
parentb63007ed58d23afdd64a4e77a447a12b64c5bced
readelf: Check there is enough data to read DWARF line opcodes arguments.

When reading the debug_line opcode arguments we have to make sure there
is enough data to read the arguments (if there are any(.

The similar code in dwarf_getsrclines already had these checks.

https://sourceware.org/bugzilla/show_bug.cgi?id=24116

Signed-off-by: Mark Wielaard <mark@klomp.org>
src/readelf.c