summaryrefslogtreecommitdiff
path: root/plugins/elf
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/elf')
-rw-r--r--plugins/elf/symbols.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/plugins/elf/symbols.c b/plugins/elf/symbols.c
index 315d003..8c40ae4 100644
--- a/plugins/elf/symbols.c
+++ b/plugins/elf/symbols.c
@@ -494,7 +494,11 @@ static bool do_elf_symbol_loading(GElfLoading *loading, GElfFormat *format, bool
case STT_OBJECT:
name = g_elf_loading_build_name(loading, index, virt, "obj_", alt_name, &addr);
- if (name == NULL) break;
+ if (name == NULL)
+ {
+ symbol = NULL;
+ break;
+ }
init_mrange(&range, &addr, ELF_SYM(format, sym, st_size));
@@ -515,7 +519,11 @@ static bool do_elf_symbol_loading(GElfLoading *loading, GElfFormat *format, bool
/* Constitution d'une routine */
name = g_elf_loading_build_name(loading, index, virt, "func_", alt_name, &addr);
- if (name == NULL) break;
+ if (name == NULL)
+ {
+ symbol = NULL;
+ break;
+ }
routine = try_to_demangle_routine(name);
symbol = G_BIN_SYMBOL(routine);