resources: don't check type chunk header size (fix #89)

This commit is contained in:
Skylot
2015-09-25 22:58:54 +03:00
parent 5528afa404
commit e4fef402c9
@@ -159,12 +159,8 @@ public class ResTableParser extends CommonBinaryParser {
}
private void parseTypeChunk(long start, PackageChunk pkg) throws IOException {
int headerSize = is.readInt16();
if (headerSize != 0x34 && headerSize != 0x38 && headerSize != 0x44) {
die("Unexpected type header size: 0x" + Integer.toHexString(headerSize));
}
/*int size =*/
is.readInt32();
/*int headerSize = */ is.readInt16();
/*int size = */ is.readInt32();
int id = is.readInt8();
is.checkInt8(0, "type chunk, res0");