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
ragg2 fails to save returns of syscall #22859
Comments
as long as you have analized the issue, can you do a pr with the fix and add a test with your usecase? |
3B85A591
added a commit
to 3B85A591/radare2
that referenced
this issue
May 1, 2024
3B85A591
added a commit
to 3B85A591/radare2
that referenced
this issue
May 1, 2024
3B85A591
added a commit
to 3B85A591/radare2
that referenced
this issue
May 1, 2024
3B85A591
added a commit
to 3B85A591/radare2
that referenced
this issue
May 1, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
Description
When compiling r_egg, ragg2's generated shellcode fails to save the result of the open syscall. Ragg2 works when saving the result of the read syscall. Ragg2 overwrites %rax, the return value, with 2000 too soon, before it can save it.
Test
Fails:
push rax & mov rax, 2000 should be probably be swapped
Successful:
The text was updated successfully, but these errors were encountered: