Read extra data if over known bytes

If the ResConfig had a size over KNOWN_CONFIG_BYTES
then the remaining bytes would be read twice, thus breaking
the next config. Fixes #924
This commit is contained in:
Connor Tumbleson 2015-05-22 09:07:15 -05:00
parent 2c1226fab8
commit 6ee029dd30

View File

@ -323,6 +323,7 @@ public class ARSCDecoder {
int exceedingSize = size - KNOWN_CONFIG_BYTES;
if (exceedingSize > 0) {
byte[] buf = new byte[exceedingSize];
read += exceedingSize;
mIn.readFully(buf);
BigInteger exceedingBI = new BigInteger(1, buf);