diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2020-02-09 22:02:42 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2020-02-09 22:02:42 (GMT) |
commit | 3674529a39efe30672fd386ae25367fea1502a69 (patch) | |
tree | dfcbc96b56e596cc78975c9de6e5bc8fd8db2f42 /plugins/elf/loading.c | |
parent | ea19719b17ff319c6c728271907f8f2ac7d8c9df (diff) |
Hardened the renaming of Elf external entries.
Diffstat (limited to 'plugins/elf/loading.c')
-rw-r--r-- | plugins/elf/loading.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/elf/loading.c b/plugins/elf/loading.c index 7b257f0..5bd7daa 100644 --- a/plugins/elf/loading.c +++ b/plugins/elf/loading.c @@ -458,6 +458,7 @@ static void g_elf_loading_process(GElfLoading *loading, GtkStatusStack *status) phys_t old; /* Sauvegarde du point d'avant */ bool ret; /* Bilan d'un appel */ size_t processed; /* Nombre de symboles traités */ + virt_t valid; /* Adresse virtuelle valide */ GBinSymbol *symbol; /* Symbole analysé */ format = loading->format; @@ -489,12 +490,13 @@ static void g_elf_loading_process(GElfLoading *loading, GtkStatusStack *status) ret = true; processed = 0; + valid = 0; for (symbol = get_symbol_iterator_next(loading->iter); symbol != NULL && ret; symbol = get_symbol_iterator_next(loading->iter)) { - ret = loading->callback_1(loading, format, symbol); + ret = loading->callback_1(loading, format, &valid, symbol); g_object_unref(G_OBJECT(symbol)); |