mirror of
https://github.com/capstone-engine/capstone.git
synced 2024-11-23 13:39:46 +00:00
x86: fix an overflow bug reported by Pancake
This commit is contained in:
parent
7fff908f94
commit
f10be9bb9d
@ -204,7 +204,7 @@ void X86_Intel_printInst(MCInst *MI, SStream *O, void *Info)
|
||||
|
||||
// first op can be embedded in the asm by llvm.
|
||||
// so we have to handle that case to not miss the first op.
|
||||
char firstop[32];
|
||||
char firstop[128];
|
||||
get_first_op(O->buffer, firstop);
|
||||
char *acc_regs[] = {"rax", "eax", "ax", "al", NULL};
|
||||
if (firstop[0] != 0 && str_in_list(acc_regs, firstop)) {
|
||||
|
Loading…
Reference in New Issue
Block a user