summaryrefslogtreecommitdiff
path: root/src/arch/processor.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2009-03-15 13:38:22 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2009-03-15 13:38:22 (GMT)
commit4ad9e532a78401f787f0a8a6742095512b520488 (patch)
tree2b71914a52fc930be78939362b16756efe9caa68 /src/arch/processor.c
parenta2b767b244e03f00c6a987bbd9872796ed385f47 (diff)
Avoided to crash when analysing crackmes such as grainne.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@55 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/arch/processor.c')
-rw-r--r--src/arch/processor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/processor.c b/src/arch/processor.c
index 71cdfba..d367949 100644
--- a/src/arch/processor.c
+++ b/src/arch/processor.c
@@ -65,14 +65,14 @@ asm_instr *decode_instruction(const asm_processor *proc, const uint8_t *data, of
result = proc->fetch_instr(proc, data, pos, len, offset);
-#define NULL ((void *)0)
+#define NULL ((void *)0) /* FIXME */
if (result == NULL)
{
*pos = old_pos;
- printf("err while decoding opcode 0x%0hhx at 0x%08llx\n", data[*pos], offset);
+ printf("err while decoding opcode 0x%02hhx at 0x%08llx\n", data[*pos], offset);
result = create_db_instruction(data, pos, len);
}