libdwfl: Check result of gelf_get* calls in relocate.c upstream/0.165
authorMark Wielaard <mjw@redhat.com>
Thu, 11 Feb 2016 12:20:59 +0000 (13:20 +0100)
committerMark Wielaard <mjw@redhat.com>
Thu, 18 Feb 2016 13:52:36 +0000 (14:52 +0100)
commit02c48ac64ee068e9a72d987996f3cbf5213ee13a
treef040a438b96c003fa7c20547da0a1191a09a2009
parentf5622bdfe6baf19d7ea20b467bc7444dc82a53a2
libdwfl: Check result of gelf_get* calls in relocate.c

For corrupted ELF files gelf_get calls might fail in which case it
is better to immediately return an error instead of using the NULL
result and crashing.

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