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

ArrayIndexOutOfBoundsException and NullPointerException on specific APK #141

Closed
intruder777 opened this issue May 26, 2016 · 2 comments
Closed

Comments

@intruder777
Copy link

Latest release version 2.9.8 crashes upon opening this APK:
https://mega.nz/#!khkETDoL!1TU35Uf5oSxBIC9m_0koswqVxnU5ZbLlgDGbR3MAGCQ

Bytecode Viewer throws two exceptions:

Bytecode Viewer Version: 2.9.8, Preview Copy: false, Fat Jar: false

java.lang.NullPointerException
    at the.bytecode.club.bytecodeviewer.BytecodeViewer$6.run(BytecodeViewer.java:867)

and

Bytecode Viewer Version: 2.9.8, Preview Copy: false, Fat Jar: false

java.lang.ArrayIndexOutOfBoundsException: 7
    at brut.a.b.b.a.b(Unknown Source)
    at brut.a.b.b.a.a(Unknown Source)
    at brut.a.b.a.a(Unknown Source)
    at brut.a.b.a.a(Unknown Source)
    at brut.a.a.a(Unknown Source)
    at brut.a.c.a(Unknown Source)
    at brut.apktool.Main.main(Unknown Source)
    at the.bytecode.club.bytecodeviewer.APKTool.decodeResources(APKTool.java:13)
    at the.bytecode.club.bytecodeviewer.BytecodeViewer$6.run(BytecodeViewer.java:863)

The APK is obfuscated, so maybe this is the reason. But anyway Bytecode Viewer should have handle such APKs. Please have a look.

@henriquedesousa
Copy link

henriquedesousa commented Jun 6, 2016

Mine is similar:

Bytecode Viewer Version: 2.9.8, Preview Copy: false, Fat Jar: false

java.lang.NullPointerException
    at the.bytecode.club.bytecodeviewer.BytecodeViewer$6.run(BytecodeViewer.java:868)

and

brut.a.a.e: resource spec: 0x010104e2
    at brut.a.b.a.d.b(Unknown Source)
    at c.c.a.a.b.d.a(Unknown Source)
    at c.c.a.a.b.d.a(Unknown Source)
    at brut.a.b.a.a.r.d(Unknown Source)
    at brut.a.b.a.a.r.a(Unknown Source)
    at brut.a.b.a.a.s.h(Unknown Source)
    at brut.a.b.a.a.u.a(Unknown Source)
    at brut.a.b.a.c(Unknown Source)
    at brut.a.a.b(Unknown Source)
    at brut.a.c.a(Unknown Source)
    at brut.apktool.Main.main(Unknown Source)
    at the.bytecode.club.bytecodeviewer.APKTool.decodeResources(APKTool.java:13)
    at the.bytecode.club.bytecodeviewer.BytecodeViewer$6.run(BytecodeViewer.java:864)

More info: this was a build created with a CI solution called buddybuild.

And yes, Apk is opened OK when I disable resource decode.

@ghost ghost mentioned this issue Apr 18, 2018
@Konloch
Copy link
Owner

Konloch commented Apr 14, 2019

Thank you for the reports and the example APK! I've confirmed this issue is fixed in the latest version of BCV.

@Konloch Konloch closed this as completed Apr 14, 2019
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

3 participants