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

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

Open
XVilka opened this issue Aug 10, 2023 · 0 comments

Comments

@XVilka
Copy link
Member

XVilka commented Aug 10, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant