mirror of
https://github.com/revanced/smali.git
synced 2025-05-04 08:34:25 +02:00
Use a BufferedInputStream in ZipDexContainer.isDex
This commit is contained in:
parent
a6593575e7
commit
16d4b5656b
@ -43,6 +43,7 @@ import org.jf.dexlib2.util.DexUtil.UnsupportedFile;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
import javax.annotation.Nullable;
|
||||
import java.io.BufferedInputStream;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
@ -161,7 +162,7 @@ public class ZipDexContainer implements MultiDexContainer<ZipDexFile> {
|
||||
}
|
||||
|
||||
protected boolean isDex(@Nonnull ZipFile zipFile, @Nonnull ZipEntry zipEntry) throws IOException {
|
||||
InputStream inputStream = zipFile.getInputStream(zipEntry);
|
||||
InputStream inputStream = new BufferedInputStream(zipFile.getInputStream(zipEntry));
|
||||
try {
|
||||
DexUtil.verifyDexHeader(inputStream);
|
||||
} catch (NotADexFile ex) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user