fix(res): allow jumping backwards to an already processed position (PR #2344)
Use buffered stream to allow going backwards in stream in case the type chunk entries are not ordered properly (see #2343).
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
package jadx.cli.tools;
|
||||
|
||||
import java.io.BufferedInputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.nio.file.Files;
|
||||
@@ -71,7 +70,7 @@ public class ConvertArscFile {
|
||||
}
|
||||
} else {
|
||||
// Load resources.arsc from extracted file
|
||||
try (InputStream inputStream = new BufferedInputStream(Files.newInputStream(resFile))) {
|
||||
try (InputStream inputStream = Files.newInputStream(resFile)) {
|
||||
resTableParser.decode(inputStream);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user