Skip to content

Commit

Permalink
Initializes to 0 X86 immediateOffset (capstone-engine#1192)
Browse files Browse the repository at this point in the history
  • Loading branch information
catenacyber authored and aquynh committed Jun 29, 2018
1 parent c956cc0 commit 0aa4e76
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions arch/X86/X86DisassemblerDecoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,11 @@ typedef struct InternalInstruction {
/* The value of the vector extension prefix(EVEX/VEX/XOP), if present */
uint8_t vectorExtensionPrefix[4];

/* Offsets from the start of the instruction to the pieces of data, which is
needed to find relocation entries for adding symbolic operands */
uint8_t displacementOffset;
uint8_t immediateOffset;

// end-of-zero-members

/* Reader interface (C) */
Expand Down Expand Up @@ -651,11 +656,6 @@ typedef struct InternalInstruction {

uint8_t immSize; // immediate size for X86_OP_IMM operand

/* Offsets from the start of the instruction to the pieces of data, which is
needed to find relocation entries for adding symbolic operands */
uint8_t displacementOffset;
uint8_t immediateOffset;

/* opcode state */

/* The last byte of the opcode, not counting any ModR/M extension */
Expand Down

0 comments on commit 0aa4e76

Please sign in to comment.