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:
Jan S.
2024-11-15 16:12:47 +01:00
committed by GitHub
parent 1e1036c049
commit fe9d3bcab7
3 changed files with 13 additions and 4 deletions
@@ -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);
}
}