summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEhsan Akhgari <ehsan.akhgari@gmail.com>2014-07-14 20:28:21 +0000
committerEhsan Akhgari <ehsan.akhgari@gmail.com>2014-07-14 20:28:21 +0000
commitb92bef3239777e022f73c9bfcc474a682dbdadc1 (patch)
treef666323bb2eac273ed18ec9e6958bd43a966faad
parent9d3c3384530c851010fcc0e292412024885038ff (diff)
downloadcompiler-rt-b92bef3239777e022f73c9bfcc474a682dbdadc1.tar.gz
Add support for intercepting thunks of the form
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@212979 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/interception/interception_win.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/interception/interception_win.cc b/lib/interception/interception_win.cc
index 9eabe52eb..261157fc7 100644
--- a/lib/interception/interception_win.cc
+++ b/lib/interception/interception_win.cc
@@ -113,6 +113,7 @@ static size_t RoundUpToInstrBoundary(size_t size, char *code) {
cursor += 3;
continue;
case 0xC1F7: // F7 C1 XX YY ZZ WW = test ecx, WWZZYYXX
+ case 0x25FF: // FF 25 XX YY ZZ WW = jmp dword ptr ds:[WWZZYYXX]
cursor += 6;
continue;
case 0x3D83: // 83 3D XX YY ZZ WW TT = cmp TT, WWZZYYXX