diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2016-02-10 10:02:16 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2016-02-10 10:02:16 (GMT) |
commit | 465488d5b231c2552116a305c48b5fcccea55a09 (patch) | |
tree | f4d072ad9cf56466f4e55d0608f7a3fe9204efaf /src/arch/processor.c | |
parent | 946f5f093c7265dc5a5e00694325605b249eea43 (diff) |
Improved the support of the DEX format.
Diffstat (limited to 'src/arch/processor.c')
-rw-r--r-- | src/arch/processor.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/arch/processor.c b/src/arch/processor.c index bbe506a..21db869 100644 --- a/src/arch/processor.c +++ b/src/arch/processor.c @@ -24,6 +24,7 @@ #include "processor.h" +#include <assert.h> #include <malloc.h> #include <stdlib.h> @@ -304,6 +305,8 @@ GArchInstruction *g_arch_processor_disassemble(const GArchProcessor *proc, GProc GArchInstruction *result; /* Instruction à renvoyer */ vmpa2t back; /* Position sauvegardée */ + assert(has_phys_addr(pos) && has_virt_addr(pos)); + copy_vmpa(&back, pos); result = G_ARCH_PROCESSOR_GET_CLASS(proc)->disassemble(proc, ctx, content, pos, format); |