!283 高安模式下去除凭据安装的限制和fuzz用例时修复使用内存释放后的值

Merge pull request !283 from 张余/master
This commit is contained in:
openharmony_ci 2024-07-10 11:41:33 +00:00 committed by Gitee
commit 28a3f2c687
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 1 additions and 12 deletions

View File

@ -89,17 +89,7 @@ CM_API_EXPORT int32_t CmInstallAppCert(const struct CmBlob *appCert, const struc
return CMR_ERROR_INVALID_ARGUMENT;
}
bool isAdvSecMode = false;
int32_t ret = CheckAdvSecMode(&isAdvSecMode);
if (ret != CM_SUCCESS) {
return ret;
}
if (isAdvSecMode) {
CM_LOG_E("InstallAppCert: the device enters advanced security mode");
return CMR_ERROR_DEVICE_ENTER_ADVSECMODE;
}
ret = CmClientInstallAppCert(appCert, appCertPwd, certAlias, store, keyUri);
int32_t ret = CmClientInstallAppCert(appCert, appCertPwd, certAlias, store, keyUri);
CM_LOG_D("leave install app certificate, result = %d", ret);
return ret;
}

View File

@ -59,7 +59,6 @@ static int32_t GetInputParams(const struct CmBlob *paramSetBlob, struct CmParamS
ret = CmParamSetToParams(*paramSet, params, paramsCount);
if (ret != CM_SUCCESS) {
CM_LOG_E("get params from paramSet failed, ret = %d", ret);
CmFreeParamSet(paramSet); /* if success no need free paramSet */
}
return ret;