From 6d6a92251855b4082f02f85396b23d5c60790451 Mon Sep 17 00:00:00 2001 From: Julian Seward Date: Thu, 23 Aug 2007 18:53:59 +0000 Subject: [PATCH] Allow up to 7 prefixes, so as to accept 66 66 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 nopw %cs:0x0(%rax,%rax,1) as a valid no-op. Blargh. git-svn-id: svn://svn.valgrind.org/vex/trunk@1776 --- VEX/priv/guest-amd64/toIR.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VEX/priv/guest-amd64/toIR.c b/VEX/priv/guest-amd64/toIR.c index f4a199e963..aff9971d2a 100644 --- a/VEX/priv/guest-amd64/toIR.c +++ b/VEX/priv/guest-amd64/toIR.c @@ -8387,7 +8387,7 @@ DisResult disInstr_AMD64_WRK ( as many invalid combinations as possible. */ n_prefixes = 0; while (True) { - if (n_prefixes > 5) goto decode_failure; + if (n_prefixes > 7) goto decode_failure; pre = getUChar(delta); switch (pre) { case 0x66: pfx |= PFX_66; break; -- 2.47.2