1
0
mirror of https://github.com/bitdefender/bddisasm.git synced 2025-01-22 04:50:55 +00:00

Apply address size override to gla computation.

This commit is contained in:
Andrei Vlad LUTAS 2020-07-23 16:19:08 +03:00
parent 087ffbcf95
commit 7ddf7e448a

View File

@ -850,6 +850,18 @@ ShemuComputeLinearAddress(
}
}
// Make sure we truncate the linear address to the address size.
switch (Context->Instruction.AddrMode)
{
case ND_ADDR_32:
gla &= 0xFFFFFFFF;
break;
case ND_ADDR_16:
gla &= 0xFFFFF;
default:
break;
}
return gla;
}