mirror of
https://github.com/revanced/Apktool.git
synced 2024-11-14 00:19:25 +01:00
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:
parent
2c1226fab8
commit
6ee029dd30
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user