未验证 提交 20db2458 编写于 作者: O openharmony_ci 提交者: Gitee

!2543 【轻量级 PR】:update en/contribute/OpenHarmony-c-cpp-secure-coding-guide.md.

Merge pull request !2543 from Huang Wei/N/A
......@@ -2383,7 +2383,7 @@ size_t pathSize = 0;
pathSize = (size_t)PATH_MAX;
if (VerifyPathSize(pathSize) == true) {
if (VerifyPathSize(pathSize)) {
canonicalFilename = (char *)malloc(pathSize);
if (canonicalFilename == NULL) {
......@@ -2397,7 +2397,7 @@ if (realpathRes == NULL) {
... // Error handling
}
if (VerifyFile(realpathRes) == false) {
if (VerifyFile(realpathRes)) {
... // Error handling
}
......@@ -3030,7 +3030,7 @@ if (file == NULL) {
}
if (IS_ERR(file)) {
printk("Error occured while opening file %s, exiting ...\n", MY_FILE);
printk("Error occurred while opening file %s, exiting ...\n", MY_FILE);
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册