Skip to content

Commit 55f5d68

Browse files
authored
[win/asan] Recognize mov QWORD PTR [rip + X], reg (#117335)
This comes up when intercepting clang-built `__sanitizer_cov` functions.
1 parent 3317c9c commit 55f5d68

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compiler-rt/lib/interception/interception_win.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,10 @@ static size_t GetInstructionSize(uptr address, size_t* rel_offset = nullptr) {
816816
// mov rax, QWORD PTR [rip + XXXXXXXX]
817817
case 0x058d48: // 48 8d 05 XX XX XX XX :
818818
// lea rax, QWORD PTR [rip + XXXXXXXX]
819+
case 0x0d8948: // 48 89 0d XX XX XX XX :
820+
// mov QWORD PTR [rip + XXXXXXXX], rcx
821+
case 0x158948: // 48 89 15 XX XX XX XX :
822+
// mov QWORD PTR [rip + XXXXXXXX], rdx
819823
case 0x25ff48: // 48 ff 25 XX XX XX XX :
820824
// rex.W jmp QWORD PTR [rip + XXXXXXXX]
821825
case 0x158D4C: // 4c 8d 15 XX XX XX XX : lea r10, [rip + XX]

0 commit comments

Comments
 (0)