Merge pull request #1324 from jamestut/arscfix2

Skip additional payload data of TYPE chunk
This commit is contained in:
Connor Tumbleson 2016-09-18 16:56:23 -04:00 committed by GitHub
commit 81b22df13c

View File

@ -154,6 +154,12 @@ public class ARSCDecoder {
while (type == Header.TYPE_TYPE) {
readTableType();
// skip "TYPE 8 chunks" and/or padding data at the end of this chunk
if(mCountIn.getCount() < mHeader.endPosition) {
mCountIn.skip(mHeader.endPosition - mCountIn.getCount());
}
type = nextChunk().type;
addMissingResSpecs();