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