[compiler-rt] cbe27c4 - [ASan][Windows] Interception fix for 'mov al, byte ptr []' sequences (#72531)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 7 07:18:03 PST 2023
Author: Zack Johnson
Date: 2023-12-07T10:17:58-05:00
New Revision: cbe27c45cdb33e73ee7b29c46e2a64359ae5cc8e
URL: https://github.com/llvm/llvm-project/commit/cbe27c45cdb33e73ee7b29c46e2a64359ae5cc8e
DIFF: https://github.com/llvm/llvm-project/commit/cbe27c45cdb33e73ee7b29c46e2a64359ae5cc8e.diff
LOG: [ASan][Windows] Interception fix for 'mov al, byte ptr []' sequences (#72531)
Added:
Modified:
compiler-rt/lib/interception/interception_win.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/interception/interception_win.cpp b/compiler-rt/lib/interception/interception_win.cpp
index f3e62419beff1..f1a549b938e20 100644
--- a/compiler-rt/lib/interception/interception_win.cpp
+++ b/compiler-rt/lib/interception/interception_win.cpp
@@ -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;
More information about the llvm-commits
mailing list