]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Allow up to 7 prefixes, so as to accept
authorJulian Seward <jseward@acm.org>
Thu, 23 Aug 2007 18:53:59 +0000 (18:53 +0000)
committerJulian Seward <jseward@acm.org>
Thu, 23 Aug 2007 18:53:59 +0000 (18:53 +0000)
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

index f4a199e963da80addeeadf6c6931e4958610b22c..aff9971d2af5de87e94b36294ec0e919ae32128b 100644 (file)
@@ -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;