Fix reading a dex file from a zip file

This commit is contained in:
Ben Gruver 2016-09-04 13:59:10 -07:00
parent 99394b3daf
commit e7e58a6996

View File

@ -501,7 +501,7 @@ public final class DexFileFactory {
InputStream stream; InputStream stream;
stream = zipFile.getInputStream(zipEntry); stream = zipFile.getInputStream(zipEntry);
try { try {
return DexBackedDexFile.fromInputStream(opcodes, stream); return DexBackedDexFile.fromInputStream(opcodes, new BufferedInputStream(stream));
} finally { } finally {
if (stream != null) { if (stream != null) {
stream.close(); stream.close();