Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash if call target is not start of a function #480

Closed
Alan-Jowett opened this issue May 20, 2024 · 1 comment · Fixed by #445
Closed

Crash if call target is not start of a function #480

Alan-Jowett opened this issue May 20, 2024 · 1 comment · Fixed by #445
Assignees

Comments

@Alan-Jowett
Copy link
Collaborator

mov32 %r0, 0x2d0000
mov32 %r2, 0x95959595
exit
stxh [%r4+5140], %r1
call local 0xfffffffd

Generates

   0x7ffff763a000:      push   %rbp
   0x7ffff763a001:      push   %rbx
   0x7ffff763a002:      push   %r12
   0x7ffff763a004:      push   %r13
   0x7ffff763a006:      push   %r14
   0x7ffff763a008:      push   %r15
   0x7ffff763a00a:      mov    %rdi,%r11
   0x7ffff763a00d:      sub    $0x8,%rsp
   0x7ffff763a014:      mov    %rsp,%rbp
   0x7ffff763a017:      mov    %rdx,%r15
   0x7ffff763a01a:      add    %rcx,%r15
   0x7ffff763a01d:      call   0x7ffff763a027
   0x7ffff763a022:      jmp    0x7ffff763a088
   0x7ffff763a027:      sub    $0x8,%rsp
   0x7ffff763a02e:      movq   $0x0,(%rsp)
   0x7ffff763a036:      mov    $0x2d0000,%eax
   0x7ffff763a03c:      and    $0xffffffff,%eax
   0x7ffff763a042:      mov    $0x95959595,%esi
   0x7ffff763a048:      and    $0xffffffff,%esi
   0x7ffff763a04e:      sub    $0x8,%rsp
   0x7ffff763a055:      movq   $0x0,(%rsp)
   0x7ffff763a05d:      add    $0x8,%rsp
   0x7ffff763a064:      ret
@Alan-Jowett Alan-Jowett changed the title Crash if jmp target is exit Crash if call target is not start of a function May 20, 2024
@hawkinsw
Copy link
Collaborator

On it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants