mirror of
git://sourceware.org/git/libabigail.git
synced 2025-02-23 01:06:56 +00:00
elf-reader: Avoid crashing when looking at non-existing variable symbol
* src/abg-elf-reader.cc (reader::variable_symbol_is_exported): Do not crash when the symbol we are looking at is non-present. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
parent
f0affd05c6
commit
b2993f7d70
@ -874,7 +874,7 @@ elf_symbol_sptr
|
||||
reader::variable_symbol_is_exported(const string& name) const
|
||||
{
|
||||
const elf_symbol_sptr s = symtab()->variable_symbol_is_exported(name);
|
||||
if (s->is_variable() && s->is_public())
|
||||
if (s && s->is_variable() && s->is_public())
|
||||
{
|
||||
bool looking_at_linux_kernel_binary =
|
||||
(load_in_linux_kernel_mode()
|
||||
|
Loading…
Reference in New Issue
Block a user