[ASan][Windows] Interception fix for 'mov al, byte ptr []' sequences (#72531)

This commit is contained in:
Zack Johnson
2023-12-07 10:17:58 -05:00
committed by GitHub
parent f1200ca7ac
commit cbe27c45cd

View File

@@ -578,6 +578,7 @@ static size_t GetInstructionSize(uptr address, size_t* rel_offset = nullptr) {
case 0x018a: // mov al, byte ptr [rcx]
return 2;
case 0x058A: // 8A 05 XX XX XX XX : mov al, byte ptr [XX XX XX XX]
case 0x058B: // 8B 05 XX XX XX XX : mov eax, dword ptr [XX XX XX XX]
if (rel_offset)
*rel_offset = 2;