From 90c2a5c389fe727e4250f255e604331c8663868d Mon Sep 17 00:00:00 2001 From: liushuling Date: Thu, 22 Sep 2022 15:17:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9dump=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E6=B8=85=E9=99=A4=E5=91=8A=E8=AD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liushuling Change-Id: I6886dbfc442d557fe8cb2ca70ca5bdd02e1b401e --- services/privacymanager/src/service/privacy_manager_service.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/privacymanager/src/service/privacy_manager_service.cpp b/services/privacymanager/src/service/privacy_manager_service.cpp index 1ff35ddc0..ffcddfd73 100644 --- a/services/privacymanager/src/service/privacy_manager_service.cpp +++ b/services/privacymanager/src/service/privacy_manager_service.cpp @@ -138,7 +138,7 @@ int32_t PrivacyManagerService::ResponseDumpCommand(int32_t fd, const std::vector return ERR_OK; } int32_t RecordsNum = 0; - for (int32_t index = result.bundleRecords[0].permissionRecords.size() - 1; index >= 0; index--) { + for (size_t index = 0; index < result.bundleRecords[0].permissionRecords.size(); index++) { if (RecordsNum > PERMISSION_USAGE_RECORDS_MAX_NUM) { break; } -- Gitee