未验证 提交 1e7fa19c 编写于 作者: H Huang Wei 提交者: Gitee

update zh-cn/contribute/OpenHarmony-c-cpp-secure-coding-guide.md.

Signed-off-by: HW<huangwei156@huawei.com>
上级 3f5b0492
......@@ -2447,7 +2447,7 @@ size_t pathSize = 0;
pathSize = (size_t)PATH_MAX;
if (VerifyPathSize(pathSize) == true) {
if (VerifyPathSize(pathSize)) {
canonicalFilename = (char *)malloc(pathSize);
if (canonicalFilename == NULL) {
......@@ -2461,7 +2461,7 @@ if (realpathRes == NULL) {
... // 错误处理
}
if (VerifyFile(realpathRes) == false) {
if (VerifyFile(realpathRes)) {
... // 错误处理
}
......@@ -3101,7 +3101,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.
先完成此消息的编辑!
想要评论请 注册