Bug 915217 - incorrect anaylzing mov [r64+disp], imm32. r=ehsan

This commit is contained in:
Makoto Kato 2013-11-19 15:47:03 +09:00
parent 59dd43f7ec
commit 9c79e1acb6

View File

@ -481,8 +481,10 @@ protected:
}
} else if (origBytes[nBytes] == 0xc7) {
// MOV r/m64, imm32
if ((origBytes[nBytes + 1] & 0xf8) == 0x40) {
nBytes += 6;
if (origBytes[nBytes + 1] == 0x44) {
// MOV [r64+disp8], imm32
// ModR/W + SIB + disp8 + imm32
nBytes += 8;
} else {
return;
}