From 23b8c130ea425a32a112eb763dc75d8dcc461fda Mon Sep 17 00:00:00 2001 From: xiaozuo00 Date: Mon, 14 Oct 2024 17:12:45 +0800 Subject: [PATCH] =?UTF-8?q?cherry=20pick=202e92a17=20from=20https://gitee.?= =?UTF-8?q?com/xiaozuo00/bundlemanager=5Fbundle=5Fframework/pulls/7221=20?= =?UTF-8?q?=E3=80=90=E5=AE=89=E5=85=A8=E9=97=AE=E9=A2=98=E3=80=91HandDeliv?= =?UTF-8?q?erySignProfile=E5=A2=9E=E5=8A=A0=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I418b5b0714f1b4f18b31b7a163f0411adbeedf33 Signed-off-by: xiaozuo00 --- services/bundlemgr/src/ipc/installd_host.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/bundlemgr/src/ipc/installd_host.cpp b/services/bundlemgr/src/ipc/installd_host.cpp index 7ff9824349..70344dcf69 100644 --- a/services/bundlemgr/src/ipc/installd_host.cpp +++ b/services/bundlemgr/src/ipc/installd_host.cpp @@ -765,7 +765,7 @@ bool InstalldHost::HandDeliverySignProfile(MessageParcel &data, MessageParcel &r { std::string bundleName = Str16ToStr8(data.ReadString16()); int32_t profileBlockLength = data.ReadInt32(); - if (profileBlockLength == 0 || profileBlockLength > Constants::MAX_PARCEL_CAPACITY) { + if (profileBlockLength <= 0 || profileBlockLength > Constants::MAX_PARCEL_CAPACITY) { WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(Int32, reply, ERR_APPEXECFWK_PARCEL_ERROR); return false; } -- Gitee