Fix crash in map_seach_ehdr()
authorJan Blunck <jblunck@suse.de>
Mon, 21 Sep 2009 15:57:02 +0000 (17:57 +0200)
committerJan Blunck <jblunck@suse.de>
Mon, 21 Sep 2009 15:57:02 +0000 (17:57 +0200)
commita42a0991797ab10c04bbcdf7cc2846c5da5bbd25
tree411484ed1774d045c407d08a9c88137d747dd7c8
parent3f02598932d0b7183080688a0c2a035c4c4f4e4e
Fix crash in map_seach_ehdr()

When searching for the ELF header check if libelf returned a valid pointer
before referencing it.

https://crashdb.opensuse.org/log/show/b75d1730f4c944b092afd8f302fe76b7

Signed-off-by: Jan Blunck <jblunck@suse.de>
src/pbuildid.c