From 17512b01e1c3cd2ddd00eb3fef02433d8e9879d7 Mon Sep 17 00:00:00 2001 From: zhaowenli Date: Tue, 2 Jan 2024 12:21:27 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=9C=E8=B6=85=E5=A4=A7=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhaowenli Change-Id: Iab9aaddf022ad327df1a2ab258731d99cfadf587 --- .../security_component/src/sec_comp_click_event_parcel.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/frameworks/security_component/src/sec_comp_click_event_parcel.cpp b/frameworks/security_component/src/sec_comp_click_event_parcel.cpp index 52f4bdf..e580dc2 100644 --- a/frameworks/security_component/src/sec_comp_click_event_parcel.cpp +++ b/frameworks/security_component/src/sec_comp_click_event_parcel.cpp @@ -122,7 +122,6 @@ SecCompClickEventParcel* SecCompClickEventParcel::Unmarshalling(Parcel& in) SC_LOG_ERROR(LABEL, "Alloc policy parcel fail"); return nullptr; } - SecCompClickEvent clickInfo; int32_t type; if (!in.ReadInt32(type)) { @@ -131,7 +130,6 @@ SecCompClickEventParcel* SecCompClickEventParcel::Unmarshalling(Parcel& in) return nullptr; } clickInfo.type = static_cast(type); - if (clickInfo.type == ClickEventType::POINT_EVENT_TYPE) { if (!UnmarshallingPointEvent(in, clickInfo)) { delete clickInfoParcel; @@ -153,7 +151,6 @@ SecCompClickEventParcel* SecCompClickEventParcel::Unmarshalling(Parcel& in) delete clickInfoParcel; return nullptr; } - if (clickInfo.extraInfo.dataSize == 0) { clickInfoParcel->clickInfoParams_ = clickInfo; return clickInfoParcel; @@ -162,14 +159,12 @@ SecCompClickEventParcel* SecCompClickEventParcel::Unmarshalling(Parcel& in) delete clickInfoParcel; return nullptr; } - clickInfo.extraInfo.data = const_cast(in.ReadBuffer(clickInfo.extraInfo.dataSize)); if (clickInfo.extraInfo.data == nullptr) { SC_LOG_ERROR(LABEL, "Read extraInfo data failed"); delete clickInfoParcel; return nullptr; } - clickInfoParcel->clickInfoParams_ = clickInfo; return clickInfoParcel; } -- Gitee