Skip to content

Commit

Permalink
only verify x86_prefix[0] for x86 arch. bug reported by @pancake
Browse files Browse the repository at this point in the history
  • Loading branch information
aquynh committed Jul 2, 2014
1 parent 58fe971 commit 22ea683
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ static void fill_insn(struct cs_struct *handle, cs_insn *insn, char *buffer, MCI
// find first space or tab
sp = buffer;
mnem = insn->mnemonic;
if (mci->x86_prefix[0]) {
if (mci->csh->arch == CS_ARCH_X86 && mci->x86_prefix[0]) {
for (sp = buffer; *sp; sp++) {
if (*sp == ' '|| *sp == '\t')
break;
Expand Down

0 comments on commit 22ea683

Please sign in to comment.