1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 03:28:20 +02:00

Added protective case

This commit is contained in:
Brian Fiete 2020-06-30 05:37:34 -07:00
parent ec3eb0b134
commit 0cbe2376ec

View file

@ -5355,6 +5355,8 @@ void BeMCContext::ValidateRMResult(const BeMCOperand& operand, BeRMParamsInfo& r
{
if (!doValidate)
return;
if (rmInfo.mMode == BeMCRMMode_Invalid)
return;
//TODO: WTF- this previous version just seems to be wrong! Why did think this was true? the REX.X and REX.B flags fix these
// in a SIB, the base can't be R13 (which is RBP+REX), and the scaled index can't be R12 (which is RSP+REX)