readelf: Return correct readp (or readendp) from print_form_data.
authorMark Wielaard <mark@klomp.org>
Mon, 11 Jun 2018 09:22:36 +0000 (11:22 +0200)
committerMark Wielaard <mark@klomp.org>
Mon, 11 Jun 2018 16:59:57 +0000 (18:59 +0200)
commit7aa8e239229cfbd0b230b4a095d0624fbb553055
treeb8053be7d2c20f54eb8e7398d553d1da4744c4cd
parent01044a9ed1d58bedb5d7f96f8ff40134d127a6d1
readelf: Return correct readp (or readendp) from print_form_data.

print_form_data returns the new readp (or readendp on error) to show how
much data was consumed. But when reading the .debug_str_offsets section
we would reuse readp and readendp. This meant the wrong readp would be
returned to the caller.

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