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

rz-ghidra didn't show variable stack size array #349

Open
Physicys opened this issue Apr 15, 2024 · 0 comments
Open

rz-ghidra didn't show variable stack size array #349

Physicys opened this issue Apr 15, 2024 · 0 comments

Comments

@Physicys
Copy link

Decompiler output

[0x00001149]> pdg

undefined8 main(int argc, char **argv)
{
    char **var_98h;
    int var_8ch;
    char *s;
    
    sym.imp.printf("stack at %p\n", &s);
    sym.imp.gets(&s);
    return 0;
}

expected output should show the buffer size

    char **var_98h;
    int var_8ch;
    char s[128];

original source code

int main(int argc, char **argv) {
  char buffer[128];
  printf("stack at %p\n", (void*)&buffer);
  gets(buffer);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant