diff options
Diffstat (limited to 'plugins/androhelpers/params.c')
-rw-r--r-- | plugins/androhelpers/params.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/androhelpers/params.c b/plugins/androhelpers/params.c index 26f4265..0c20c8d 100644 --- a/plugins/androhelpers/params.c +++ b/plugins/androhelpers/params.c @@ -131,6 +131,7 @@ static void process_args_operand(const GDexMethod *method, const GDalvikArgsOper static void visit_all_method_operands(const GDexMethod *method, GArchInstruction *instrs) { GBinRoutine *routine; /* Abstraction de la méthode */ + const mrange_t *range; /* Emplacement du symbole */ vmpa_t start; /* Début de la zone couverte */ vmpa_t end; /* Fin de la zone couverte */ GArchInstruction *iter; /* Boucle de parcours #1 */ @@ -139,9 +140,10 @@ static void visit_all_method_operands(const GDexMethod *method, GArchInstruction GArchOperand *operand; /* Operande à manipuler */ routine = g_dex_method_get_routine(method); + range = g_binary_symbol_get_range(G_BIN_SYMBOL(routine)); - start = g_binary_routine_get_address(routine); - end = start + g_binary_routine_get_size(routine); + start = get_mrange_addr(range)->virtual; + end = start + get_mrange_length(range); g_object_unref(G_OBJECT(routine)); |