]> git.ipfire.org Git - thirdparty/elfutils.git/commit
readelf: Skip section if name is NULL in print_debug.
authorMark Wielaard <mjw@redhat.com>
Tue, 27 May 2014 08:25:27 +0000 (10:25 +0200)
committerMark Wielaard <mjw@redhat.com>
Tue, 27 May 2014 20:00:46 +0000 (22:00 +0200)
commit903f334ef06fbec28d23b7c8ea3c79cacc1da14f
treed3c078fee507dc398a1900d1cf759c73f6961856
parenteb4811dee133864ebbab1a062ac14af1f3ffdc62
readelf: Skip section if name is NULL in print_debug.

Don't crash and burn when a section doesn't have a name (possibly invalid
ELF file string table). Just try the next section instead of calling strcmp
on NULL.

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