From cd5f1593257206fd29efdf1420bcffb6f4a91ac7 Mon Sep 17 00:00:00 2001 From: tianp Date: Tue, 5 Aug 2025 14:32:27 +0800 Subject: [PATCH] =?UTF-8?q?getxattr=E6=8E=A5=E5=8F=A3=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E6=89=93=E5=8D=B0=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: tianp Change-Id: I6c9db687758eb4c0156fd88101d87344dc8c7e2e --- interfaces/kits/js/src/mod_fs/properties/xattr_core.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/interfaces/kits/js/src/mod_fs/properties/xattr_core.cpp b/interfaces/kits/js/src/mod_fs/properties/xattr_core.cpp index ba22e42c7..d0e242713 100644 --- a/interfaces/kits/js/src/mod_fs/properties/xattr_core.cpp +++ b/interfaces/kits/js/src/mod_fs/properties/xattr_core.cpp @@ -32,11 +32,12 @@ static bool IsIllegalXattr(const char *key, const char *value) { bool isIllegalKey = strnlen(key, MAX_XATTR_SIZE + 1) > MAX_XATTR_SIZE; if (isIllegalKey) { - HILOGE("key is too long"); + HILOGE("Key is too long"); } + bool isIllegalValue = strnlen(value, MAX_XATTR_SIZE + 1) > MAX_XATTR_SIZE; if (isIllegalValue) { - HILOGE("value is too long"); + HILOGE("Value is too long"); } return isIllegalKey || isIllegalValue; } -- Gitee