未验证 提交 16b0f0b5 编写于 作者: H Huang Wei 提交者: Gitee

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

Signed-off-by: NHW <huangwei156@huawei.com>
上级 3f5b0492
......@@ -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.
先完成此消息的编辑!
想要评论请 注册