commit | 868b31bf21b0400383f198b84ddefc6fdc5e6c4a | [log] [tgz] |
---|---|---|
author | David Major <[email protected]> | Fri May 11 14:31:14 2018 |
committer | David Major <[email protected]> | Fri May 11 14:31:14 2018 |
tree | 72e9fd6b1621f127be6c3133f3b2bb5cf438f3dc | |
parent | 22dd72b99556f451b56ca3f9b71607be5fd5968f [diff] [blame] |
[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 llvm-svn: 332095
diff --git a/compiler-rt/lib/interception/interception_win.cc b/compiler-rt/lib/interception/interception_win.cc index dc3fe35..bd4ad72 100644 --- a/compiler-rt/lib/interception/interception_win.cc +++ b/compiler-rt/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