Task #90727 - fixed.err
back to task #90727download
Error: GCC_ANALYZER_WARNING (CWE-775):
criu-4.1.1/criu/cr-check.c:141:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ns.<Uc460>.net.nlsk’
criu-4.1.1/criu/cr-check.c:135:23: acquire_resource: socket created here
criu-4.1.1/criu/cr-check.c:136:12: branch_false: following ‘false’ branch...
criu-4.1.1/criu/cr-check.c:141:15: branch_false: ...to here
criu-4.1.1/criu/cr-check.c:141:15: throw: if ‘collect_sockets’ throws an exception...
criu-4.1.1/criu/cr-check.c:141:15: danger: ‘ns.<Uc460>.net.nlsk’ leaks here
# 139| }
# 140|
# 141|-> ret = collect_sockets(&ns);
# 142| if (!ret)
# 143| return 0;
Error: GCC_ANALYZER_WARNING (CWE-476):
criu-4.1.1/criu/cr-dump.c:1399:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
criu-4.1.1/criu/cr-dump.c:1378:9: branch_true: following ‘true’ branch (when ‘item’ is non-NULL)...
criu-4.1.1/criu/cr-dump.c:1379:21: branch_true: ...to here
criu-4.1.1/criu/cr-dump.c:1393:20: branch_false: following ‘false’ branch...
criu-4.1.1/criu/cr-dump.c:1396:29: branch_false: ...to here
criu-4.1.1/criu/cr-dump.c:1399:17: branch_true: following ‘true’ branch...
criu-4.1.1/criu/cr-dump.c:1399:17: branch_true: ...to here
criu-4.1.1/criu/cr-dump.c:1399:17: danger: dereference of NULL ‘0’
# 1397| item->pgid = pps_buf.pgid;
# 1398|
# 1399|-> BUG_ON(!list_empty(&item->children));
# 1400|
# 1401| if (!item->sid) {
Error: GCC_ANALYZER_WARNING (CWE-775):
criu-4.1.1/criu/cr-service.c:332:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘start_pipe[1]’
criu-4.1.1/criu/cr-service.c:999:12: enter_function: entry to ‘start_page_server_req’
criu-4.1.1/criu/cr-service.c:1008:12: branch_false: following ‘false’ branch...
criu-4.1.1/criu/cr-service.c:1013:15: branch_false: ...to here
criu-4.1.1/criu/cr-service.c:1014:12: branch_true: following ‘true’ branch (when ‘pid == 0’)...
criu-4.1.1/criu/cr-service.c:1015:17: branch_true: ...to here
criu-4.1.1/criu/cr-service.c:1018:21: call_function: calling ‘setup_opts_from_req’ from ‘start_page_server_req’
# 330|
# 331| rpc_cfg_file = req->config_file;
# 332|-> i = parse_options(0, NULL, &dummy, &dummy, PARSING_RPC_CONF);
# 333| if (i) {
# 334| xfree(tmp_output);
Error: GCC_ANALYZER_WARNING (CWE-775):
criu-4.1.1/criu/cr-service.c:390:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘start_pipe[1]’
criu-4.1.1/criu/cr-service.c:999:12: enter_function: entry to ‘start_page_server_req’
criu-4.1.1/criu/cr-service.c:1008:12: branch_false: following ‘false’ branch...
criu-4.1.1/criu/cr-service.c:1013:15: branch_false: ...to here
criu-4.1.1/criu/cr-service.c:1014:12: branch_true: following ‘true’ branch (when ‘pid == 0’)...
criu-4.1.1/criu/cr-service.c:1015:17: branch_true: ...to here
criu-4.1.1/criu/cr-service.c:1018:21: call_function: calling ‘setup_opts_from_req’ from ‘start_page_server_req’
# 388| strncpy(images_dir_path, req->images_dir, PATH_MAX - 1);
# 389| else {
# 390|-> pr_err("Neither images_dir_fd nor images_dir was passed by RPC client.\n");
# 391| goto err;
# 392| }
Error: GCC_ANALYZER_WARNING (CWE-775):
criu-4.1.1/criu/cr-service.c:1046:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘start_pipe[(int)ps.has_port]’
criu-4.1.1/criu/cr-service.c:1008:12: branch_false: following ‘false’ branch...
criu-4.1.1/criu/cr-service.c:1013:15: branch_false: ...to here
criu-4.1.1/criu/cr-service.c:1014:12: branch_false: following ‘false’ branch (when ‘pid != 0’)...
criu-4.1.1/criu/cr-service.c:1046:9: branch_false: ...to here
criu-4.1.1/criu/cr-service.c:1046:9: throw: if ‘close’ throws an exception...
criu-4.1.1/criu/cr-service.c:1046:9: danger: ‘start_pipe[(int)ps.has_port]’ leaks here
# 1044| }
# 1045|
# 1046|-> close(start_pipe[1]);
# 1047|
# 1048| if (daemon_mode) {
Error: GCC_ANALYZER_WARNING (CWE-775):
criu-4.1.1/criu/cr-service.c:1046:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘start_pipe[1]’
criu-4.1.1/criu/cr-service.c:1008:12: branch_false: following ‘false’ branch...
criu-4.1.1/criu/cr-service.c:1013:15: branch_false: ...to here
criu-4.1.1/criu/cr-service.c:1014:12: branch_false: following ‘false’ branch (when ‘pid != 0’)...
criu-4.1.1/criu/cr-service.c:1046:9: branch_false: ...to here
criu-4.1.1/criu/cr-service.c:1046:9: throw: if ‘close’ throws an exception...
criu-4.1.1/criu/cr-service.c:1046:9: danger: ‘start_pipe[1]’ leaks here
# 1044| }
# 1045|
# 1046|-> close(start_pipe[1]);
# 1047|
# 1048| if (daemon_mode) {
Error: GCC_ANALYZER_WARNING (CWE-775):
criu-4.1.1/criu/cr-service.c:1049:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘start_pipe[(int)ps.has_port]’
criu-4.1.1/criu/cr-service.c:1008:12: branch_false: following ‘false’ branch...
criu-4.1.1/criu/cr-service.c:1013:15: branch_false: ...to here
criu-4.1.1/criu/cr-service.c:1014:12: branch_false: following ‘false’ branch (when ‘pid != 0’)...
criu-4.1.1/criu/cr-service.c:1046:9: branch_false: ...to here
criu-4.1.1/criu/cr-service.c:1048:12: branch_true: following ‘true’ branch (when ‘daemon_mode != 0’)...
criu-4.1.1/criu/cr-service.c:1049:21: branch_true: ...to here
criu-4.1.1/criu/cr-service.c:1049:21: throw: if ‘waitpid’ throws an exception...
criu-4.1.1/criu/cr-service.c:1049:21: danger: ‘start_pipe[(int)ps.has_port]’ leaks here
# 1047|
# 1048| if (daemon_mode) {
# 1049|-> if (waitpid(pid, &ret, 0) != pid) {
# 1050| pr_perror("Unable to wait %d", pid);
# 1051| goto out;
Error: GCC_ANALYZER_WARNING (CWE-775):
criu-4.1.1/criu/cr-service.c:1050:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘start_pipe[(int)ps.has_port]’
criu-4.1.1/criu/cr-service.c:1008:12: branch_false: following ‘false’ branch...
criu-4.1.1/criu/cr-service.c:1013:15: branch_false: ...to here
criu-4.1.1/criu/cr-service.c:1014:12: branch_false: following ‘false’ branch (when ‘pid != 0’)...
criu-4.1.1/criu/cr-service.c:1046:9: branch_false: ...to here
criu-4.1.1/criu/cr-service.c:1048:12: branch_true: following ‘true’ branch (when ‘daemon_mode != 0’)...
criu-4.1.1/criu/cr-service.c:1049:21: branch_true: ...to here
criu-4.1.1/criu/cr-service.c:1049:20: branch_true: following ‘true’ branch...
criu-4.1.1/criu/cr-service.c:1050:25: branch_true: ...to here
criu-4.1.1/criu/cr-service.c:1050:25: throw: if ‘print_on_level’ throws an exception...
criu-4.1.1/criu/cr-service.c:1050:25: danger: ‘start_pipe[(int)ps.has_port]’ leaks here
# 1048| if (daemon_mode) {
# 1049| if (waitpid(pid, &ret, 0) != pid) {
# 1050|-> pr_perror("Unable to wait %d", pid);
# 1051| goto out;
# 1052| }
Error: GCC_ANALYZER_WARNING (CWE-775):
criu-4.1.1/criu/cr-service.c:1055:33: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘start_pipe[(int)ps.has_port]’
criu-4.1.1/criu/cr-service.c:1008:12: branch_false: following ‘false’ branch...
criu-4.1.1/criu/cr-service.c:1013:15: branch_false: ...to here
criu-4.1.1/criu/cr-service.c:1014:12: branch_false: following ‘false’ branch (when ‘pid != 0’)...
criu-4.1.1/criu/cr-service.c:1046:9: branch_false: ...to here
criu-4.1.1/criu/cr-service.c:1048:12: branch_true: following ‘true’ branch (when ‘daemon_mode != 0’)...
criu-4.1.1/criu/cr-service.c:1049:21: branch_true: ...to here
criu-4.1.1/criu/cr-service.c:1049:20: branch_false: following ‘false’ branch...
criu-4.1.1/criu/cr-service.c:1053:21: branch_false: ...to here
criu-4.1.1/criu/cr-service.c:1053:20: branch_true: following ‘true’ branch...
criu-4.1.1/criu/cr-service.c:1054:29: branch_true: ...to here
criu-4.1.1/criu/cr-service.c:1054:28: branch_true: following ‘true’ branch...
criu-4.1.1/criu/cr-service.c:1055:33: branch_true: ...to here
criu-4.1.1/criu/cr-service.c:1055:33: throw: if ‘print_on_level’ throws an exception...
criu-4.1.1/criu/cr-service.c:1055:33: danger: ‘start_pipe[(int)ps.has_port]’ leaks here
# 1053| if (WIFEXITED(ret)) {
# 1054| if (WEXITSTATUS(ret)) {
# 1055|-> pr_err("Child exited with an error\n");
# 1056| goto out;
# 1057| }
Error: GCC_ANALYZER_WARNING (CWE-775):
criu-4.1.1/criu/cr-service.c:1059:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘start_pipe[(int)ps.has_port]’
criu-4.1.1/criu/cr-service.c:1008:12: branch_false: following ‘false’ branch...
criu-4.1.1/criu/cr-service.c:1013:15: branch_false: ...to here
criu-4.1.1/criu/cr-service.c:1014:12: branch_false: following ‘false’ branch (when ‘pid != 0’)...
criu-4.1.1/criu/cr-service.c:1046:9: branch_false: ...to here
criu-4.1.1/criu/cr-service.c:1048:12: branch_true: following ‘true’ branch (when ‘daemon_mode != 0’)...
criu-4.1.1/criu/cr-service.c:1049:21: branch_true: ...to here
criu-4.1.1/criu/cr-service.c:1049:20: branch_false: following ‘false’ branch...
criu-4.1.1/criu/cr-service.c:1053:21: branch_false: ...to here
criu-4.1.1/criu/cr-service.c:1053:20: branch_false: following ‘false’ branch...
criu-4.1.1/criu/cr-service.c:1059:25: branch_false: ...to here
criu-4.1.1/criu/cr-service.c:1059:25: throw: if ‘print_on_level’ throws an exception...
criu-4.1.1/criu/cr-service.c:1059:25: danger: ‘start_pipe[(int)ps.has_port]’ leaks here
# 1057| }
# 1058| } else {
# 1059|-> pr_err("Child wasn't terminated normally\n");
# 1060| goto out;
# 1061| }
Error: GCC_ANALYZER_WARNING (CWE-775):
criu-4.1.1/criu/cr-service.c:1065:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘start_pipe[(int)ps.has_port]’
criu-4.1.1/criu/cr-service.c:1008:12: branch_false: following ‘false’ branch...
criu-4.1.1/criu/cr-service.c:1013:15: branch_false: ...to here
criu-4.1.1/criu/cr-service.c:1014:12: branch_false: following ‘false’ branch (when ‘pid != 0’)...
criu-4.1.1/criu/cr-service.c:1046:9: branch_false: ...to here
criu-4.1.1/criu/cr-service.c:1065:9: throw: if ‘close’ throws an exception...
criu-4.1.1/criu/cr-service.c:1065:9: danger: ‘start_pipe[(int)ps.has_port]’ leaks here
# 1063|
# 1064| count = read(start_pipe[0], &info, sizeof(info));
# 1065|-> close(start_pipe[0]);
# 1066| if (count != sizeof(info))
# 1067| goto out;
Error: GCC_ANALYZER_WARNING (CWE-476):
criu-4.1.1/criu/files.c:1332:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
criu-4.1.1/criu/files.c:1332:9: branch_true: following ‘true’ branch...
criu-4.1.1/criu/files.c:1332:9: branch_true: ...to here
criu-4.1.1/criu/files.c:1332:9: danger: dereference of NULL ‘0’
# 1330| }
# 1331|
# 1332|-> BUG_ON(current->pid->state == TASK_HELPER);
# 1333| ret = open_fdinfos(me);
# 1334|