diff --git a/services/bundlemgr/src/ipc/installd_host.cpp b/services/bundlemgr/src/ipc/installd_host.cpp index 7ff9824349e6a5b083a156a5dc9da8f9a4de228d..70344dcf695bf9c730678993ac3558a8bc7feb3e 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; }