iBotPeaches / Apktool

A tool for reverse engineering Android apk files
https://apktool.org/
Apache License 2.0
19.96k stars 3.57k forks source link

org.jf.dexlib.Util.ExceptionWithContext with com_tmall_wireless_v2_0_6.apk #617

Closed iBotPeaches closed 9 years ago

iBotPeaches commented 9 years ago

Original issue 507 created by xiongjy2104 on 2013-08-24T13:11:27.000Z:

apk is here http://www.yingyong.so/download.aspx?id=8426&tid=1&file=com_tmall_wireless_v2_0_6.apk

run: apktool.bat d com_tmall_wireless_v2_0_6.apk in win7-x64-jdk6.0u45

with

Exception in thread "main" org.jf.dexlib.Util.ExceptionWithContext: Index: 18493021, Size: 4811 at org.jf.dexlib.Util.ExceptionWithContext.withContext(ExceptionWithContext.java:54) at org.jf.dexlib.IndexedSection.getItemByIndex(IndexedSection.java:77) at org.jf.dexlib.Code.InstructionWithReference.lookupReferencedItem(InstructionWithReference.java:85) at org.jf.dexlib.Code.InstructionWithReference.<init>(InstructionWithReference.java:57) at org.jf.dexlib.Code.Format.InstructionWithJumboReference.<init>(InstructionWithJumboReference.java:51 at org.jf.dexlib.Code.Format.Instruction52c.<init>(Instruction52c.java:63) at org.jf.dexlib.Code.Format.Instruction52c.<init>(Instruction52c.java:42) at org.jf.dexlib.Code.Format.Instruction52c$Factory.makeInstruction(Instruction52c.java:91) at org.jf.dexlib.Code.InstructionIterator.IterateInstructions(InstructionIterator.java:82) at org.jf.dexlib.CodeItem.readItem(CodeItem.java:154) at org.jf.dexlib.Item.readFrom(Item.java:77) at org.jf.dexlib.OffsettedSection.readItems(OffsettedSection.java:48) at org.jf.dexlib.Section.readFrom(Section.java:143) at org.jf.dexlib.DexFile.<init>(DexFile.java:431) at org.jf.dexlib.DexFile.<init>(DexFile.java:267) at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:49) at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:34) at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:74) at brut.androlib.ApkDecoder.decode(ApkDecoder.java:89) at brut.apktool.Main.cmdDecode(Main.java:146) at brut.apktool.Main.main(Main.java:77) Caused by: java.lang.IndexOutOfBoundsException: Index: 18493021, Size: 4811 at java.util.ArrayList.RangeCheck(ArrayList.java:547) at java.util.ArrayList.get(ArrayList.java:322) at org.jf.dexlib.IndexedSection.getItemByIndex(IndexedSection.java:75) ... 19 more Error occured while retrieving the type_id_item item at index 18493021 Error occured at code address 0 code_item @0xa8438

iBotPeaches commented 9 years ago

Comment #1 originally posted by connor.tumbleson on 2013-08-24T13:13:38.000Z:

<empty>