diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2009-10-29 01:38:43 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2009-10-29 01:38:43 (GMT) |
commit | 3b1b7cd7a3b7b36d2937e13437519e951668a995 (patch) | |
tree | fda56d25b729287f603d32dc51493ea3bb0bffea /src/arch/x86/operand.c | |
parent | 8ae0409cfc70aa399bc0083a1ce6bdb27cc2ce23 (diff) |
Fixed bugs and made the binary loading process faster.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@134 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/arch/x86/operand.c')
-rw-r--r-- | src/arch/x86/operand.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/arch/x86/operand.c b/src/arch/x86/operand.c index 09a3489..cf4c863 100644 --- a/src/arch/x86/operand.c +++ b/src/arch/x86/operand.c @@ -1180,6 +1180,9 @@ bool _x86_read_operands(GArchInstruction *instr, const bin_t *data, off_t *pos, for (i = 0; i < count; i++) types[i] = va_arg(ap, AsmOperandSize); + for ( ; i < MAX_OPERANDS; i++) + types[i] = X86_OTP_NONE; + /* Initialisations */ if (types[0] & X86_OTP_RM_TYPE) |