Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

Depth out of bounds #3

@cqsniha

Description

@cqsniha

As you can see,It can not deal with depth more than 3 levels.
Uploading 16680055789201194173028405090771.jpg…
I: 00.015 Dumping ... 'D:\platform-tools\Java\resources.arsc'
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 3 out of bounds for length 3
at com.kikfox.lib.arsc.AItemString.decodeUtf8StringByteLength(AItemString.java:388)
at com.kikfox.lib.arsc.AItemString.decodeString(AItemString.java:358)
at com.kikfox.lib.arsc.AItemString.decodeString(AItemString.java:205)
at com.kikfox.lib.arsc.AItemString.onBytesChanged(AItemString.java:213)
at com.kikfox.lib.arsc.AItemString.loadBytes(AItemString.java:92)
at com.kikfox.lib.arsc.ARSCArrayOffsets.loadItemBytes(ARSCArrayOffsets.java:49)
at com.kikfox.lib.arsc.ARSCBlockArray.loadBytes(ARSCBlockArray.java:31)
at com.kikfox.lib.arsc.ARSCBlockArray.loadItemBytes(ARSCBlockArray.java:39)
at com.kikfox.lib.arsc.ARSCBlockArray.loadBytes(ARSCBlockArray.java:31)
at com.kikfox.lib.arsc.ARSCResource.loadBodyBytes(ARSCResource.java:65)
at com.kikfox.lib.arsc.ARSCResource.loadItemBytes(ARSCResource.java:56)
at com.kikfox.lib.arsc.ARSCBlockArray.loadBytes(ARSCBlockArray.java:31)
at com.kikfox.lib.arsc.ARSCBlockArray.loadItemBytes(ARSCBlockArray.java:39)
at com.kikfox.lib.arsc.ARSCBlockArray.loadBytes(ARSCBlockArray.java:31)
at com.kikfox.lib.arsc.ARSCResource.loadBodyBytes(ARSCResource.java:65)
at com.kikfox.lib.arsc.ARSCResource.loadItemBytes(ARSCResource.java:56)
at com.kikfox.lib.arsc.ARSCBlockArray.loadBytes(ARSCBlockArray.java:31)
at com.command.CommandDump.dump(CommandDump.java:35)
at com.command.CommandDump.run(CommandDump.java:28)
at com.command.BaseCommand.parse(BaseCommand.java:36)
at com.command.CommandDump.parse(CommandDump.java:13)
at com.command.Command.run(Command.java:34)
at com.kikfox.arscTool.Main.main(Main.java:15)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions