From 524fee72f3033b2abcc453618a868aa905e46060 Mon Sep 17 00:00:00 2001 From: "fenghao (P)" Date: Fri, 7 May 2021 14:19:22 +0800 Subject: [PATCH] =?UTF-8?q?IssueNo:#I3Q0J8=20Description:=E8=A3=81?= =?UTF-8?q?=E5=89=AA=E8=A7=A3=E5=8C=85=E5=B7=A5=E5=85=B7=E5=AF=B9hap?= =?UTF-8?q?=E5=A4=A7=E5=B0=8F=E7=9A=84=E9=99=90=E5=88=B6=20Sig:aafwk=20Fea?= =?UTF-8?q?ture=20or=20Bugfix:=20Bugfix=20Binary=20Source:=20No?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- com/huawei/ohos/Uncompress.java | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/com/huawei/ohos/Uncompress.java b/com/huawei/ohos/Uncompress.java index 0d61522f..367cf9ad 100755 --- a/com/huawei/ohos/Uncompress.java +++ b/com/huawei/ohos/Uncompress.java @@ -59,8 +59,7 @@ public class Uncompress { private static final int READ_BUFFER_SIZE = 1024; private static final int BUFFER_SIZE = 10 * 1024; private static final long FILE_TIME = 1546272000000L; - private static final long TOO_BIG_SIZE = 0x6400000; - private static final long TOO_MANY_SIZE = 32768; + private static final long TOO_MANY_SIZE = 65536; private static final String LIBS_DIR_NAME = "libs"; private static final String CUT_ENTRY_FILENAME = "cut_entry.apk"; private static final String SO_SUFFIX = ".so"; @@ -430,10 +429,6 @@ public class Uncompress { while (count > 0) { fileOutStream.write(data, 0, count); total += count; - if (total > TOO_BIG_SIZE) { - LOG.error("Uncompress::dataTransfer exception: " + entry.getName() + " is too big."); - throw new BundleException("DataTransfer failed entry is too big"); - } count = fileInputStream.read(data); } } catch (FileNotFoundException ignored) { @@ -481,10 +476,6 @@ public class Uncompress { while (count > 0) { fileOutStream.write(data, 0, count); total += count; - if (total > TOO_BIG_SIZE) { - LOG.error("Uncompress::dataTransferByInput exception: " + entryName + " is too big."); - throw new BundleException("dataTransferByInput failed entry is too big"); - } count = zipIn.read(data); } @@ -889,10 +880,6 @@ public class Uncompress { while (count > 0) { fileOutStream.write(data, 0, count); total += count; - if (total > TOO_BIG_SIZE) { - LOG.error("Uncompress::parseHapInfoByTempPath exception: entry is too big."); - throw new BundleException("ParseHapInfoByTempPath failed entry is too big"); - } count = zipIn.read(data); } compressResult = uncompress("", destPath, HARMONY_PROFILE); -- Gitee