Skip to content

Commit 160e8eb

Browse files
strega-nilAndrew Dean
and
Andrew Dean
authored
[ASan] Recognize lea r10, [rip + XX] (#68910)
This instruction is present in memcpy in the latest vcruntime This PR has been opened for @AndrewDeanMS (a teammate inside Microsoft) who made the PR to our internal branch. Co-authored-by: Andrew Dean <[email protected]>
1 parent 7493d45 commit 160e8eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/interception/interception_win.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ static size_t GetInstructionSize(uptr address, size_t* rel_offset = nullptr) {
624624
// mov rax, QWORD PTR [rip + XXXXXXXX]
625625
case 0x25ff48: // 48 ff 25 XX XX XX XX :
626626
// rex.W jmp QWORD PTR [rip + XXXXXXXX]
627-
627+
case 0x158D4C: // 4c 8d 15 XX XX XX XX : lea r10, [rip + XX]
628628
// Instructions having offset relative to 'rip' need offset adjustment.
629629
if (rel_offset)
630630
*rel_offset = 3;

0 commit comments

Comments
 (0)