]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Change a couple of panics into decode failures, which is what they
authorJulian Seward <jseward@acm.org>
Fri, 28 Jan 2005 13:45:42 +0000 (13:45 +0000)
committerJulian Seward <jseward@acm.org>
Fri, 28 Jan 2005 13:45:42 +0000 (13:45 +0000)
should be.

git-svn-id: svn://svn.valgrind.org/vex/trunk@759

VEX/priv/guest-x86/toIR.c

index c75fa7affef857b987c182eeed4904f3ce164f40..ca2aa00b608a7ce7247b6965dd963bc1c4388f2c 100644 (file)
@@ -10611,10 +10611,11 @@ DisResult disInstr ( /*IN*/  Bool       resteerOK,
       break;
  
    case 0x8D: /* LEA M,Gv */
-      vassert(sz == 4);
+      if (sz != 4)
+         goto decode_failure;
       modrm = getIByte(delta);
       if (epartIsReg(modrm)) 
-         vpanic("LEA M,Gv: modRM refers to register (x86)");
+         goto decode_failure;
       /* NOTE!  this is the one place where a segment override prefix
          has no effect on the address calculation.  Therefore we pass
          zero instead of sorb here. */