From: Julian Seward Date: Thu, 23 Aug 2007 18:53:59 +0000 (+0000) Subject: Allow up to 7 prefixes, so as to accept X-Git-Tag: svn/VALGRIND_3_3_1^2~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d6a92251855b4082f02f85396b23d5c60790451;p=thirdparty%2Fvalgrind.git 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 --- 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;