未验证 提交 a2fe1e24 编写于 作者: G gouzil 提交者: GitHub

[clang-tidy] Open...

[clang-tidy] Open clang-analyzer-unix.Vfork、clang-analyzer-security.insecureAPI.vfork Check (#56253)
上级 bf0ef606
......@@ -137,13 +137,13 @@ bugprone-unused-raii,
-clang-analyzer-security.insecureAPI.mktemp,
-clang-analyzer-security.insecureAPI.rand,
-clang-analyzer-security.insecureAPI.strcpy,
-clang-analyzer-security.insecureAPI.vfork,
clang-analyzer-security.insecureAPI.vfork,
-clang-analyzer-unix.API,
-clang-analyzer-unix.DynamicMemoryModeling,
-clang-analyzer-unix.Malloc,
-clang-analyzer-unix.MallocSizeof,
-clang-analyzer-unix.MismatchedDeallocator,
-clang-analyzer-unix.Vfork,
clang-analyzer-unix.Vfork,
-clang-analyzer-unix.cstring.BadSizeArg,
-clang-analyzer-unix.cstring.CStringModeling,
-clang-analyzer-unix.cstring.NullArg,
......
......@@ -117,7 +117,7 @@ static int shell_popen_fork_internal(const char* real_cmd,
int child_pid = -1;
// Too frequent calls to fork() makes openmpi very slow. Use vfork() instead.
// But vfork() is very dangerous. Be careful.
if ((child_pid = vfork()) < 0) {
if ((child_pid = vfork()) < 0) { // NOLINT
return -1;
}
......@@ -127,7 +127,7 @@ static int shell_popen_fork_internal(const char* real_cmd,
return child_pid;
}
int child_std_end = do_read ? 1 : 0;
int child_std_end = do_read ? 1 : 0; // NOLINT
close(parent_end);
if (child_end != child_std_end) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册