diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2016-10-14 16:24:34 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2016-10-14 16:24:34 (GMT) |
commit | 722539ffc6005c6cd9c8ebd37f93999014ae6d24 (patch) | |
tree | 5f78dce6057f904d689c9ff073cc69f33d057abf /src/analysis/disass/fetch.c | |
parent | 8dff3daac4d2dc98b90adaecea834fb65db4fb10 (diff) |
Handled Dalvik simple switch cases without fallthrough.
Diffstat (limited to 'src/analysis/disass/fetch.c')
-rw-r--r-- | src/analysis/disass/fetch.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/analysis/disass/fetch.c b/src/analysis/disass/fetch.c index 4b162e8..7d8161a 100644 --- a/src/analysis/disass/fetch.c +++ b/src/analysis/disass/fetch.c @@ -480,6 +480,7 @@ static GDelayedFetching template; /* Patron des tâches à venir /****************************************************************************** * * * Paramètres : binary = représentation de binaire chargé. * +* ctx = contexte fourni pour suivre le désassemblage. * * gid = identifiant du groupe de travail à utiliser. * * status = barre de statut avec progression à mettre à jour. * * * @@ -491,12 +492,11 @@ static GDelayedFetching template; /* Patron des tâches à venir * * ******************************************************************************/ -GArchInstruction *disassemble_binary_content(const GLoadedBinary *binary, wgroup_id_t gid, GtkStatusStack *status) +GArchInstruction *disassemble_binary_content(const GLoadedBinary *binary, GProcContext *ctx, wgroup_id_t gid, GtkStatusStack *status) { GArchInstruction *result; /* Instruction désassemblées */ //GDelayedFetching template; /* Patron des tâches à venir */ GBinFormat *format; /* Format du fichier binaire */ - GArchProcessor *proc; /* Architecture du binaire */ GBinContent *content; /* Contenu binaire à manipuler */ phys_t length; /* Taille des données à lire */ GWorkQueue *queue; /* Gestionnaire de différés */ @@ -509,9 +509,7 @@ GArchInstruction *disassemble_binary_content(const GLoadedBinary *binary, wgroup template.format = g_loaded_binary_get_format(binary); format = G_BIN_FORMAT(template.format); - proc = g_loaded_binary_get_processor(binary); - template.ctx = g_arch_processor_get_context(proc); - g_object_unref(G_OBJECT(proc)); + template.ctx = ctx; content = g_binary_format_get_content(format); length = g_binary_content_compute_size(content); @@ -577,8 +575,6 @@ GArchInstruction *disassemble_binary_content(const GLoadedBinary *binary, wgroup //g_object_unref(G_OBJECT(template.format)); - g_object_unref(G_OBJECT(template.ctx)); - /* TODO / del(areas); */ return result; |