From 18abab984952612bfd16c2359d1f9337924011b6 Mon Sep 17 00:00:00 2001 From: ganchuantao Date: Tue, 3 Sep 2024 07:47:35 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=93=9D=E5=8C=BAstrtoul?= =?UTF-8?q?=E6=9C=80=E5=A4=A7=E5=8F=AA=E8=83=BD=E8=BD=AC32=E4=BD=8D?= =?UTF-8?q?=E6=95=B0=E5=AD=97=E6=9C=80=E5=A4=A7=E5=80=BC=E9=97=AE=E9=A2=98?= =?UTF-8?q?5.0release?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ganchuantao --- frameworks/native/hichecker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/native/hichecker.cpp b/frameworks/native/hichecker.cpp index dc8a3ac..0858436 100644 --- a/frameworks/native/hichecker.cpp +++ b/frameworks/native/hichecker.cpp @@ -245,7 +245,7 @@ void HiChecker::InitHicheckerParam(const char *processName) paramOutBuf[retLen] = '\0'; HILOG_INFO(LOG_CORE, "hichecker param value is %{public}s", paramOutBuf); char *endPtr = nullptr; - uint64_t rule = strtoul(paramOutBuf, &endPtr, BASE_TAG); + uint64_t rule = strtoull(paramOutBuf, &endPtr, BASE_TAG); if (!(rule & ALLOWED_RULE)) { HILOG_ERROR(LOG_CORE, "not allowed param."); return; -- Gitee