From f10be9bb9d3d79c1352f1656b020d9215cc8d863 Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Thu, 28 Nov 2013 15:04:43 +0800 Subject: [PATCH] x86: fix an overflow bug reported by Pancake --- arch/X86/X86IntelInstPrinter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/X86/X86IntelInstPrinter.c b/arch/X86/X86IntelInstPrinter.c index 0ffd34cc4..cec137ce5 100644 --- a/arch/X86/X86IntelInstPrinter.c +++ b/arch/X86/X86IntelInstPrinter.c @@ -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)) {