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

Function argument passing incorrect. #43

Open
Rot127 opened this issue Jan 4, 2022 · 0 comments
Open

Function argument passing incorrect. #43

Rot127 opened this issue Jan 4, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@Rot127
Copy link
Member

Rot127 commented Jan 4, 2022

This seems to only happen if the function signature is added with afs.

  • If a signature is added to an analyzed function, it falsely claims that the arguments are all given via the stack. Although they should be passed by register.
  • The stack arguments are all only 1byte in size. Although they should be at least 4.

Example:

void sym.function (void *arg0, char *arg1);                                                                                                     │ 0x00006f10    9 104          sym._Locksyslock                                │
│            ; arg void *arg0 @ R30+0x00x00006e10    3 96           sym._Initlocks                                  │
│            ; arg char *arg1 @ R30+0x1
@Rot127 Rot127 added the bug Something isn't working label Jan 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant