Skip to content

Commit

Permalink
x86: ENDBR64 & ENDBR32 are unavailable in REDUCE mode
Browse files Browse the repository at this point in the history
  • Loading branch information
aquynh committed Feb 22, 2019
1 parent 732a9e5 commit dcb77c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/X86/X86Disassembler.c
Original file line number Diff line number Diff line change
Expand Up @@ -996,6 +996,7 @@ bool X86_getInstruction(csh ud, const uint8_t *code, size_t code_len,
}
return false;
case 4: {
#ifndef CAPSTONE_X86_REDUCE
if (handle->mode != CS_MODE_16) {
unsigned char b1 = 0, b2 = 0, b3 = 0, b4 = 0;

Expand Down Expand Up @@ -1028,6 +1029,7 @@ bool X86_getInstruction(csh ud, const uint8_t *code, size_t code_len,
return true;
}
}
#endif
}
return false;
}
Expand Down

0 comments on commit dcb77c3

Please sign in to comment.