[compiler-rt] [ASan][Windows] Interception fix for 'mov al, byte ptr []' sequences (PR #72531)
Zack Johnson via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 16 08:38:33 PST 2023
https://github.com/zacklj89 created https://github.com/llvm/llvm-project/pull/72531
None
>From 01a90e0224021f482d90d0201e2f8490a0a435cc Mon Sep 17 00:00:00 2001
From: Zachary Johnson <zajohnson at microsoft.com>
Date: Thu, 16 Nov 2023 11:37:21 -0500
Subject: [PATCH] Interception fix for 'mov al, byte ptr []' sequences
---
compiler-rt/lib/interception/interception_win.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/compiler-rt/lib/interception/interception_win.cpp b/compiler-rt/lib/interception/interception_win.cpp
index 1b681ada37b170d..ffde89693b0acc6 100644
--- a/compiler-rt/lib/interception/interception_win.cpp
+++ b/compiler-rt/lib/interception/interception_win.cpp
@@ -577,6 +577,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