From e37a581b308abba3dd69dfb8217a6791edefb139 Mon Sep 17 00:00:00 2001 From: zhutianyi Date: Wed, 29 Jun 2022 20:03:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhutianyi --- services/time_manager/src/time_service_stub.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/time_manager/src/time_service_stub.cpp b/services/time_manager/src/time_service_stub.cpp index 7546b07..4612501 100644 --- a/services/time_manager/src/time_service_stub.cpp +++ b/services/time_manager/src/time_service_stub.cpp @@ -312,6 +312,10 @@ int32_t TimeServiceStub::OnTimerProxy(MessageParcel &data, MessageParcel &reply) { TIME_HILOGI(TIME_MODULE_SERVICE, "start."); auto uid = data.ReadInt32(); + if (uid == 0) { + TIME_HILOGE(TIME_MODULE_SERVICE, "Error param uid."); + return E_TIME_READ_PARCEL_ERROR; + } auto isProxy = data.ReadBool(); if (!ProxyTimer(uid, isProxy)) { return E_TIME_DEAL_FAILED;