rizinorg / rz-ghidra

Deep ghidra decompiler and sleigh disassembler integration for rizin
GNU Lesser General Public License v3.0
829 stars 88 forks source link

Ghidra Decompiler Error: Symbol method.public.Hello.void_say extends beyond the end of the address space #328

Open XVilka opened 1 year ago

XVilka commented 1 year ago

Open dex/Hello.dex from rizin-testbins, then try to decompile

[0x1000001c0]> aaa
[0x1000001e8]> pdf
            ; CALL XREF from entry0 @ 0x1000001ce
            ;-- sym.Hello.void_say:
╭ method.public.Hello.void_say();
│           0x1000001e8      62000100       sget-object v0, Ljava/lang/System;->out Ljava/io/PrintStream; ; void say()
│           0x1000001ec      22010400       new-instance v1, Ljava/lang/StringBuilder; ; str.Ljava_lang_StringBuilder
│                                                                      ; 0x100000299
│           0x1000001f0      701005000100   invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V ; sym.StringBuilder.void__init
│           0x1000001f6      1a020100       const-string v2, str.Hello ; 0x100000236
│           0x1000001fa      6e2006002100   invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; ; sym.StringBuilder.StringBuilder_append_String
│           0x100000200      0c01           move-result-object v1
│           0x100000202      54320000       iget-object v2, v3, LHello;->who Ljava/lang/String;
│           0x100000206      6e2006002100   invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; ; sym.StringBuilder.StringBuilder_append_String
│           0x10000020c      0c01           move-result-object v1
│           0x10000020e      6e1007000100   invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; ; sym.StringBuilder.String_toString
│           0x100000214      0c01           move-result-object v1
│           0x100000216      6e2003001000   invoke-virtual {v0, v1}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V ; sym.java.io.PrintStream.void_println_String
╰           0x10000021c      0e00           return-void
[0x1000001e8]> pdg
WARNING: Language Dalvik:LE:32:default is deprecated
Ghidra Decompiler Error: Symbol method.public.Hello.void_say extends beyond the end of the address space
[0x1000001e8]>

cc @wargio