Initializes to 0 X86 immediateOffset (#1192)

This commit is contained in:
Catena cyber 2018-06-29 10:59:30 +02:00 committed by Nguyen Anh Quynh
parent c956cc0631
commit 0aa4e76b8e

View File

@ -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) */
@ -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 */