!433 修复安全问题单

Merge pull request !433 from Mr.zhao/master
This commit is contained in:
openharmony_ci
2024-04-30 01:52:45 +00:00
committed by Gitee
+3
View File
@@ -525,6 +525,9 @@ static int32_t CopySyscopToRet(struct PcidPriSyscapInfo *pcidPriSyscapInfo, cons
break;
}
}
if(t == allSyscapNum){
return -1;
}
pcidPriSyscapInfo->ret = strcpy_s(tempSyscap, sizeof(char) * SINGLE_SYSCAP_LEN, g_arraySyscap[t].str);
// 2, header of pcid & rpcid
if (pcidPriSyscapInfo->ret != EOK) {