JesusFreke / smali

smali/baksmali
6.34k stars 1.07k forks source link

Baksmali throws ArrayIndexOutOfBoundsException #800

Open 4rch-96 opened 3 years ago

4rch-96 commented 3 years ago

I am trying to decode an .odex file but it throws me this ArrayLimit exception, I have already tried with several versions of baksmali and I cannot decode the .odex file

Here I leave the error that throws me and the command I am using..if you could help me..thanks in advance

sudo java -jar /home/aarom/Downloads/baksmali-2.2.4.jar x toDus\ (Beta)/base.odex -d /home/aarom/Desktop/framework/arm64 -b ./framework/arm64/boot.oat -o odex/ Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 1630474416 out of bounds for length 3641592 at org.jf.dexlib2.dexbacked.BaseDexBuffer.readSmallUint(BaseDexBuffer.java:53) at org.jf.dexlib2.dexbacked.OatFile$DexEntryIterator.next(OatFile.java:575) at org.jf.dexlib2.dexbacked.OatFile$DexEntryIterator.next(OatFile.java:566) at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48) at org.jf.util.AbstractForwardSequentialList$1.next(AbstractForwardSequentialList.java:91) at java.base/java.util.AbstractSequentialList.get(AbstractSequentialList.java:88) at org.jf.dexlib2.DexFileFactory.loadDexFile(DexFileFactory.java:129) at org.jf.baksmali.DexInputCommand.loadDexFile(DexInputCommand.java:149) at org.jf.baksmali.DisassembleCommand.run(DisassembleCommand.java:161) at org.jf.baksmali.Main.main(Main.java:102)

bphd commented 1 month ago

Same here