[compiler-rt] 7cd109b - [asan] Additionnal prologue decoding for WinSDK 10.0.22000

Alexandre Ganea via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 30 17:12:08 PST 2021


Author: Alexandre Ganea
Date: 2021-12-30T20:11:45-05:00
New Revision: 7cd109b92c72855937273a6c8ab19016fbe27d33

URL: https://github.com/llvm/llvm-project/commit/7cd109b92c72855937273a6c8ab19016fbe27d33
DIFF: https://github.com/llvm/llvm-project/commit/7cd109b92c72855937273a6c8ab19016fbe27d33.diff

LOG: [asan] Additionnal prologue decoding for WinSDK 10.0.22000

Fixes interception of atoi() entry point.

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 38b8c058246a2..9289e06b88fc1 100644
--- a/compiler-rt/lib/interception/interception_win.cpp
+++ b/compiler-rt/lib/interception/interception_win.cpp
@@ -602,6 +602,7 @@ static size_t GetInstructionSize(uptr address, size_t* rel_offset = nullptr) {
     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
     case 0x24748948:  // 48 89 74 24 XX : mov QWORD PTR [rsp + XX], rsi
+    case 0x247c8948:  // 48 89 7c 24 XX : mov QWORD PTR [rsp + XX], rdi
     case 0x244C8948:  // 48 89 4C 24 XX : mov QWORD PTR [rsp + XX], rcx
     case 0x24548948:  // 48 89 54 24 XX : mov QWORD PTR [rsp + XX], rdx
     case 0x244c894c:  // 4c 89 4c 24 XX : mov QWORD PTR [rsp + XX], r9


        


More information about the llvm-commits mailing list