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

CompressedXmlParser.getStringFromStringTable method throwing a ArrayIndexOutOfBoundsException #7

Open
AymenDaoudi opened this issue Jan 8, 2018 · 2 comments

Comments

@AymenDaoudi
Copy link

AymenDaoudi commented Jan 8, 2018

When the parser seems to encounter an element with an attribute that has a long value, the getStringFromStringTable method throws an ArrayIndexOutOfBoundsException.

image

Here exactly :

image

The file causing this behavior looks like this :

image

@sujeathpareddy
Copy link

I have the same issue. Stack trace is below:

    java.lang.ArrayIndexOutOfBoundsException: length=452; index=452
        at fr.xgouchet.axml.CompressedXmlParser.getStringFromStringTable(CompressedXmlParser.java:423)
        at fr.xgouchet.axml.CompressedXmlParser.parseStringTable(CompressedXmlParser.java:180)
        at fr.xgouchet.axml.CompressedXmlParser.parseCompressedXml(CompressedXmlParser.java:108)
        at fr.xgouchet.axml.CompressedXmlParser.parse(CompressedXmlParser.java:73)
        at fr.xgouchet.axml.CompressedXmlParser.parseDOM(CompressedXmlParser.java:89)
        at com.fizzy.be.ar.StringExtractor$Companion.handleBinaryXML(StringExtractor.kt:127)

@sujeathpareddy
Copy link

I seem to occasionally receive NegativeArraySizeException and NullPointerException: listener must not be null too. This is such a useful library. Fixing these bugs is better than having to rip code out of the AAPT repo.

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

2 participants