[compiler-rt] 8417f6a - [win/asan] Fix instruction size for 44 0f b6 1a

Hans Wennborg via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 21 08:57:20 PDT 2024


Author: Hans Wennborg
Date: 2024-10-21T17:55:47+02:00
New Revision: 8417f6af54c8f6dcf5893ab1352b50bf33c5a1ba

URL: https://github.com/llvm/llvm-project/commit/8417f6af54c8f6dcf5893ab1352b50bf33c5a1ba
DIFF: https://github.com/llvm/llvm-project/commit/8417f6af54c8f6dcf5893ab1352b50bf33c5a1ba.diff

LOG: [win/asan] Fix instruction size for 44 0f b6 1a

  movzx  r11d,BYTE PTR [rdx]

is four bytes long.

Follow-up to #111638

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 4f60d4251303d6..077a536dd2a310 100644
--- a/compiler-rt/lib/interception/interception_win.cpp
+++ b/compiler-rt/lib/interception/interception_win.cpp
@@ -769,6 +769,7 @@ static size_t GetInstructionSize(uptr address, size_t* rel_offset = nullptr) {
 
   switch (*(u32*)(address)) {
     case 0x1ab60f44:  // 44 0f b6 1a : movzx r11d, BYTE PTR [rdx]
+      return 4;
     case 0x24448b48:  // 48 8b 44 24 XX : mov rax, QWORD ptr [rsp + XX]
     case 0x246c8948:  // 48 89 6C 24 XX : mov QWORD ptr [rsp + XX], rbp
     case 0x245c8948:  // 48 89 5c 24 XX : mov QWORD PTR [rsp + XX], rbx


        


More information about the llvm-commits mailing list