From: Julian Seward Date: Fri, 28 Jan 2005 13:45:42 +0000 (+0000) Subject: Change a couple of panics into decode failures, which is what they X-Git-Tag: svn/VALGRIND_3_0_1^2~575 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5973e062f94f5d296e2d011b4dd5c153c0136e46;p=thirdparty%2Fvalgrind.git Change a couple of panics into decode failures, which is what they should be. git-svn-id: svn://svn.valgrind.org/vex/trunk@759 --- diff --git a/VEX/priv/guest-x86/toIR.c b/VEX/priv/guest-x86/toIR.c index c75fa7affe..ca2aa00b60 100644 --- a/VEX/priv/guest-x86/toIR.c +++ b/VEX/priv/guest-x86/toIR.c @@ -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. */