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;
stream = zipFile.getInputStream(zipEntry);
try {
return DexBackedDexFile.fromInputStream(opcodes, stream);
return DexBackedDexFile.fromInputStream(opcodes, new BufferedInputStream(stream));
} finally {
if (stream != null) {
stream.close();