mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-04 18:12:54 +01:00
If obtained value is smaller than expected, retry
- fixes #1332 - thanks xpirt
This commit is contained in:
parent
31ce5a315d
commit
894da2033b
@ -69,7 +69,7 @@ public class ExtDataInput extends DataInputDelegate {
|
|||||||
public void skipCheckChunkTypeInt(int expected, int possible) throws IOException {
|
public void skipCheckChunkTypeInt(int expected, int possible) throws IOException {
|
||||||
int got = readInt();
|
int got = readInt();
|
||||||
|
|
||||||
if (got == possible) {
|
if (got == possible || got < expected) {
|
||||||
skipCheckChunkTypeInt(expected, -1);
|
skipCheckChunkTypeInt(expected, -1);
|
||||||
} else if (got != expected) {
|
} else if (got != expected) {
|
||||||
throw new IOException(String.format("Expected: 0x%08x, got: 0x%08x", expected, got));
|
throw new IOException(String.format("Expected: 0x%08x, got: 0x%08x", expected, got));
|
||||||
|
Loading…
Reference in New Issue
Block a user