mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-02-25 05:57:24 +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) }
|
SuFileOutputStream.open(dest).use { out -> zin.copyTo(out) }
|
||||||
}
|
}
|
||||||
} catch (e: IOException) {
|
} catch (e: IllegalArgumentException) {
|
||||||
e.printStackTrace()
|
throw IOException(e)
|
||||||
throw e
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user