Skip to content

Commit cbe27c4

Browse files
authored
[ASan][Windows] Interception fix for 'mov al, byte ptr []' sequences (#72531)
1 parent f1200ca commit cbe27c4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler-rt/lib/interception/interception_win.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,7 @@ static size_t GetInstructionSize(uptr address, size_t* rel_offset = nullptr) {
578578
case 0x018a: // mov al, byte ptr [rcx]
579579
return 2;
580580

581+
case 0x058A: // 8A 05 XX XX XX XX : mov al, byte ptr [XX XX XX XX]
581582
case 0x058B: // 8B 05 XX XX XX XX : mov eax, dword ptr [XX XX XX XX]
582583
if (rel_offset)
583584
*rel_offset = 2;

0 commit comments

Comments
 (0)