mirror of
https://github.com/revanced/Apktool.git
synced 2025-04-30 22:24:25 +02:00
fix: skip parsing if chunk end is reached (#3134)
This commit is contained in:
parent
c46a6a13f9
commit
6a28621fcc
@ -305,6 +305,16 @@ public class ARSCDecoder {
|
|||||||
}
|
}
|
||||||
mMissingResSpecMap.put(i, false);
|
mMissingResSpecMap.put(i, false);
|
||||||
mResId = (mResId & 0xffff0000) | i;
|
mResId = (mResId & 0xffff0000) | i;
|
||||||
|
|
||||||
|
// As seen in some recent APKs - there are more entries reported than can fit in the chunk.
|
||||||
|
if (mCountIn.getCount() == mHeader.endPosition) {
|
||||||
|
int remainingEntries = entryCount - i;
|
||||||
|
LOGGER.warning(String.format("End of chunk hit. Skipping remaining entries (%d) in type: %s",
|
||||||
|
remainingEntries, mTypeSpec.getName())
|
||||||
|
);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
readEntry(readEntryData());
|
readEntry(readEntryData());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user