rizinorg / rz-ghidra

Deep ghidra decompiler and sleigh disassembler integration for rizin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rz-ghidra didn't show variable stack size array

Physicys opened this issue · comments

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);
}