Task #77659 - added.err
back to task #77659download
Error: GCC_ANALYZER_WARNING (CWE-775):
criu-4.1.1/criu/cr-service.c:1015:17: 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_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:1015:17: danger: ‘start_pipe[(int)ps.has_port]’ leaks here
# 1013| pid = fork();
# 1014| if (pid == 0) {
# 1015|-> close(start_pipe[0]);
# 1016|
# 1017| opts.mode = CR_PAGE_SERVER;
Error: GCC_ANALYZER_WARNING (CWE-401):
criu-4.1.1/criu/include/util.h:408:9: warning[-Wanalyzer-malloc-leak]: leak of ‘tail’
criu-4.1.1/criu/mount.c:3367:5: enter_function: entry to ‘read_mnt_ns_img’
criu-4.1.1/criu/mount.c:3372:12: branch_false: following ‘false’ branch...
criu-4.1.1/criu/mount.c:3377:14: branch_false: ...to here
criu-4.1.1/criu/mount.c:3377:29: branch_true: following ‘true’ branch (when ‘nsid’ is non-NULL)...
criu-4.1.1/criu/mount.c:3378:36: branch_true: ...to here
criu-4.1.1/criu/mount.c:3380:20: branch_false: following ‘false’ branch...
criu-4.1.1/criu/mount.c:3383:21: branch_false: ...to here
criu-4.1.1/criu/mount.c:3383:21: call_function: calling ‘collect_mnt_from_image’ from ‘read_mnt_ns_img’
# 406| {
# 407| void **pp = (void **)p;
# 408|-> free(*pp);
# 409| }
# 410|
Error: GCC_ANALYZER_WARNING (CWE-401):
criu-4.1.1/criu/mount.c:3286:30: warning[-Wanalyzer-malloc-leak]: leak of ‘tail’
criu-4.1.1/criu/mount.c:3367:5: enter_function: entry to ‘read_mnt_ns_img’
criu-4.1.1/criu/mount.c:3372:12: branch_false: following ‘false’ branch...
criu-4.1.1/criu/mount.c:3377:14: branch_false: ...to here
criu-4.1.1/criu/mount.c:3377:29: branch_true: following ‘true’ branch (when ‘nsid’ is non-NULL)...
criu-4.1.1/criu/mount.c:3378:36: branch_true: ...to here
criu-4.1.1/criu/mount.c:3380:20: branch_false: following ‘false’ branch...
criu-4.1.1/criu/mount.c:3383:21: branch_false: ...to here
criu-4.1.1/criu/mount.c:3383:21: call_function: calling ‘collect_mnt_from_image’ from ‘read_mnt_ns_img’
# 3284| pm->internal_sharing = me->internal_sharing;
# 3285|
# 3286|-> pm->source = xstrdup(me->source);
# 3287| if (!pm->source)
# 3288| goto err;