修改安全告警

Signed-off-by: zhaohang <zhaohang44@huawei.com>
This commit is contained in:
zhaohang
2025-03-24 16:16:21 +08:00
parent 3a80d38aa1
commit 50970be76d
+5
View File
@@ -379,6 +379,11 @@ static int32_t GetPriSyscap(PCIDMain *pcidMain, cJSON *sysCapObject, int32_t con
char *tempPriSyscapStr = priSyscapStr;
char *ptrPrivateSyscap = (char *)(pcidMain + 1);
while (*ptrPrivateSyscap != '\0') {
size_t currentLen = tempPriSyscapStr - priSyscapStr;
if (currentLen >= SINGLE_SYSCAP_LEN - 1) {
PRINT_ERR("Syscap name exceeds maximum length\n");
return GetPriSyscapResult(capVectorPtr, -1);
}
if (*ptrPrivateSyscap == ',') {
*tempPriSyscapStr = '\0';
int32_t ret = sprintf_s(fullCapStr, SINGLE_SYSCAP_LEN, "SystemCapability.%s", priSyscapStr);