]> git.ipfire.org Git - thirdparty/elfutils.git/commit
readelf: When the version chain ends, stop processing the entries.
authorMark Wielaard <mjw@redhat.com>
Mon, 17 Nov 2014 22:35:28 +0000 (23:35 +0100)
committerMark Wielaard <mjw@redhat.com>
Mon, 17 Nov 2014 22:42:56 +0000 (23:42 +0100)
commit3b3a19190ed40617b33abaeac6f2341233759815
tree1fab30ace316f40f34219e97a3a14aa2234507dd
parent5c1a45c2d370e7fd1149fa74a9382e202fbfe8fe
readelf: When the version chain ends, stop processing the entries.

The version definition, auxiliary version, version dependency and needed
version sections chain information together through "next" fields. When
the "next" field is zero there are no more information entries. Stop
processing when we see zero instead of repeatedly processing the same
entry (at offset zero from the current one).

Signed-off-by: Mark Wielaard <mjw@redhat.com>
src/ChangeLog
src/readelf.c