summaryrefslogtreecommitdiff
path: root/src/arch/x86/op_push.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2008-09-06 22:07:54 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2008-09-06 22:07:54 (GMT)
commitb52f03ab912cd5e51dc2abea20edee6ad38c26fe (patch)
treec9399ca4d23c1355a83828e95889da5c0d1eedfd /src/arch/x86/op_push.c
parent4946ffe81e3edf35061a07cf4425f9accff11888 (diff)
Better handled the case where decoding fails.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@26 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/arch/x86/op_push.c')
-rw-r--r--src/arch/x86/op_push.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/arch/x86/op_push.c b/src/arch/x86/op_push.c
index b577177..c5d4c67 100644
--- a/src/arch/x86/op_push.c
+++ b/src/arch/x86/op_push.c
@@ -68,7 +68,6 @@ asm_x86_instr *read_instr_push_content(const uint8_t *data, off_t *pos, off_t le
content = x86_create_content1632_operand(data, pos, len, oprsize == AOS_32_BITS, true);
if (content == NULL)
{
- (*pos)--;
free(result);
return NULL;
}