Unverified Commit 0ad66875 authored by LoveSy's avatar LoveSy Committed by GitHub

Fix crash when zip is malformat

Co-authored-by: 's avatar南宫雪珊 <vvb2060@gmail.com>
Co-authored-by: 's avatar残页 <31466456+canyie@users.noreply.github.com>
parent 1191ac26
......@@ -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)
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment