]> git.ipfire.org Git - thirdparty/elfutils.git/commit
readelf: Sanity check verneed and verdef offsets in handle_symtab.
authorMark Wielaard <mark@klomp.org>
Wed, 3 Mar 2021 20:40:53 +0000 (21:40 +0100)
committerMark Wielaard <mark@klomp.org>
Wed, 3 Mar 2021 20:44:45 +0000 (21:44 +0100)
commit480b6fa3662ba8ffeee274bf0d37423413c01e55
tree0563dc04e7bfce7946dd4772c3fd637adb69b012
parentc497478390de6a40a74f9ef567b05e39403c6314
readelf: Sanity check verneed and verdef offsets in handle_symtab.

We are going through vna_next, vn_next and vd_next in a while loop.
Make sure that all offsets are sane. We don't want things to wrap
around so we go in cycles.

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

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