[compiler-rt] r332095 - [winasan] Update GetInstructionSize for Win10 1803

David Major via llvm-commits llvm-commits at lists.llvm.org
Fri May 11 07:31:14 PDT 2018


Author: dmajor
Date: Fri May 11 07:31:14 2018
New Revision: 332095

URL: http://llvm.org/viewvc/llvm-project?rev=332095&view=rev
Log:
[winasan] Update GetInstructionSize for Win10 1803

In Windows version 1803, the first instruction of ntdll!strchr is:
8a01 mov al,byte ptr [rcx]

This is the only needed change for this version as far as I can tell.

Differential Revision: https://reviews.llvm.org/D46458

Modified:
    compiler-rt/trunk/lib/interception/interception_win.cc

Modified: compiler-rt/trunk/lib/interception/interception_win.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/interception/interception_win.cc?rev=332095&r1=332094&r2=332095&view=diff
==============================================================================
--- compiler-rt/trunk/lib/interception/interception_win.cc (original)
+++ compiler-rt/trunk/lib/interception/interception_win.cc Fri May 11 07:31:14 2018
@@ -453,6 +453,7 @@ static size_t GetInstructionSize(uptr ad
   }
 
   switch (*(u16*)(address)) {
+    case 0x018A:  // 8A 01 : mov al, byte ptr [ecx]
     case 0xFF8B:  // 8B FF : mov edi, edi
     case 0xEC8B:  // 8B EC : mov ebp, esp
     case 0xc889:  // 89 C8 : mov eax, ecx




More information about the llvm-commits mailing list