diff options
author | David Major <dmajor@mozilla.com> | 2018-05-11 14:31:14 +0000 |
---|---|---|
committer | David Major <dmajor@mozilla.com> | 2018-05-11 14:31:14 +0000 |
commit | 64c820d819421d8d5dd262b16ed367636e2da23b (patch) | |
tree | adcb882dcf3c9161d52111d3b1c6a2d81231f485 /lib/interception | |
parent | d55f7bdbe7079a3d331d8ac7d0e82352eaf26af1 (diff) |
[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
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@332095 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/interception')
-rw-r--r-- | lib/interception/interception_win.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/interception/interception_win.cc b/lib/interception/interception_win.cc index dc3fe3524..bd4ad7274 100644 --- a/lib/interception/interception_win.cc +++ b/lib/interception/interception_win.cc @@ -453,6 +453,7 @@ static size_t GetInstructionSize(uptr address, size_t* rel_offset = nullptr) { } 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 |