From baa3b9bfd8914399419a56f0417efae8b797fa85 Mon Sep 17 00:00:00 2001 From: goukun Date: Thu, 11 Sep 2025 15:04:04 +0800 Subject: [PATCH] param check Signed-off-by: goukun --- interfaces/kits/cj/src/webview_ffi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interfaces/kits/cj/src/webview_ffi.cpp b/interfaces/kits/cj/src/webview_ffi.cpp index d6375ccc0..07c743a43 100644 --- a/interfaces/kits/cj/src/webview_ffi.cpp +++ b/interfaces/kits/cj/src/webview_ffi.cpp @@ -1258,7 +1258,7 @@ extern "C" { int32_t FfiOHOSWebviewCtlSetHostIP(char* hostname, char* address, int32_t aliveTime) { - if (strlen(hostname) + 1 > UINT_MAX || strlen(hostname) + 1 > UINT_MAX || aliveTime <= 0) { + if (strlen(hostname) + 1 > UINT_MAX || strlen(address) + 1 > UINT_MAX || aliveTime <= 0) { return NWebError::PARAM_CHECK_ERROR; } unsigned char buf[sizeof(in6_addr)]; -- Gitee