mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-28 09:37:38 +00:00
Fix crash when zip is malformat
Co-authored-by: 南宫雪珊 <vvb2060@gmail.com> Co-authored-by: 残页 <31466456+canyie@users.noreply.github.com>
This commit is contained in:
parent
1191ac2671
commit
0ad66875ab
@ -38,8 +38,7 @@ fun InputStream.unzip(folder: File, path: String, junkPath: Boolean) {
|
||||
}
|
||||
SuFileOutputStream.open(dest).use { out -> zin.copyTo(out) }
|
||||
}
|
||||
} catch (e: IOException) {
|
||||
e.printStackTrace()
|
||||
throw e
|
||||
} catch (e: IllegalArgumentException) {
|
||||
throw IOException(e)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user