Check elf_strptr didn't fail getting section name.
authorMark Wielaard <mjw@redhat.com>
Mon, 17 Nov 2014 22:15:45 +0000 (23:15 +0100)
committerMark Wielaard <mjw@redhat.com>
Mon, 17 Nov 2014 22:19:03 +0000 (23:19 +0100)
commit5c1a45c2d370e7fd1149fa74a9382e202fbfe8fe
treeb41fc506962bb78a5b9176600abd968146bc7e2b
parent7df0da33f4789e264242a4cb8af30c0aefe6d6b4
Check elf_strptr didn't fail getting section name.

Since elf_strptr can fail and return NULL we should always check the result
before usage. Debug sections are only handled by section name, so make sure
the name actually exists.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
backends/ChangeLog
backends/ppc64_init.c
libebl/ChangeLog
libebl/ebldebugscnp.c
libelf/ChangeLog
libelf/elf-knowledge.h
src/ChangeLog
src/elfcmp.c
src/objdump.c
src/size.c