[PATCH] D46458: [winasan] Update GetInstructionSize for Win10 1803

David Major via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 4 13:47:21 PDT 2018


dmajor created this revision.
Herald added subscribers: Sanitizers, llvm-commits.

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.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D46458

Files:
  lib/interception/interception_win.cc


Index: lib/interception/interception_win.cc
===================================================================
--- lib/interception/interception_win.cc
+++ lib/interception/interception_win.cc
@@ -453,6 +453,7 @@
   }
 
   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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46458.145271.patch
Type: text/x-patch
Size: 434 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180504/0a85b064/attachment.bin>


More information about the llvm-commits mailing list