Task #78407 - fixed.err
back to task #78407download
Error: COMPILER_WARNING:
systemd-258/src/basic/fs-util.c:299:13: error[-Wimplicit-function-declaration]: implicit declaration of function ‘fchmodat2’; did you mean ‘fchmodat’?
# 297| assert(fd >= 0);
# 298|
# 299|-> if (fchmodat2(fd, "", m, AT_EMPTY_PATH) >= 0)
# 300| return 0;
# 301| if (!IN_SET(errno, ENOSYS, EPERM)) /* Some container managers block unknown syscalls with EPERM */
Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258/src/boot/efi-string.c:673:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx.dyn_buf’
systemd-258/src/boot/efi-string.c:1011:11: enter_function: entry to ‘xvasprintf_status’
systemd-258/src/boot/efi-string.c:1012:16: call_function: calling ‘printf_internal’ from ‘xvasprintf_status’
# 671| push_padding(ctx, ' ', sp->padded_len);
# 672|
# 673|-> assert(ctx->n < ctx->n_buf);
# 674| return true;
# 675| }
Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258/src/boot/efi-string.c:973:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx.dyn_buf’
systemd-258/src/boot/efi-string.c:1011:11: enter_function: entry to ‘xvasprintf_status’
systemd-258/src/boot/efi-string.c:1012:16: call_function: calling ‘printf_internal’ from ‘xvasprintf_status’
# 971| va_end(ctx.ap);
# 972|
# 973|-> assert(ctx.n < ctx.n_buf);
# 974| ctx.buf[ctx.n++] = '\0';
# 975|
Error: COMPILER_WARNING (CWE-9001):
systemd-258/src/import/pull-job.c: scope_hint: In function ‘pull_job_begin’
systemd-258/src/import/pull-job.c:742:13: warning[-Wattribute-warning]: call to ‘Wcurl_easy_setopt_err_long’ declared with attribute warning: curl_easy_setopt expects a long argument
# 742 | if (curl_easy_setopt(j->curl, CURLOPT_NOPROGRESS, 0) != CURLE_OK)
# | ^
# 740| return -EIO;
# 741|
# 742|-> if (curl_easy_setopt(j->curl, CURLOPT_NOPROGRESS, 0) != CURLE_OK)
# 743| return -EIO;
# 744|
Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258/src/journal-remote/journal-remote-main.c:134:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘<Ueed8>[1]’
systemd-258/src/journal-remote/journal-remote-main.c:651:12: enter_function: entry to ‘create_remoteserver’
systemd-258/src/journal-remote/journal-remote-main.c:665:12: branch_false: following ‘false’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:668:13: branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:669:12: branch_false: following ‘false’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:672:13: branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:673:12: branch_false: following ‘false’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:676:17: branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:678:12: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:710:12: branch_true: following ‘true’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:711:17: branch_true: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:712:22: call_function: calling ‘spawn_getter’ from ‘create_remoteserver’
# 132| return log_error_errno(errno, "Failed to create pager pipe: %m");
# 133|
# 134|-> r = safe_fork_full("(remote)",
# 135| (int[]) {STDIN_FILENO, fd[1], STDERR_FILENO },
# 136| NULL, 0,
Error: COMPILER_WARNING (CWE-9001):
systemd-258/src/journal-remote/journal-upload.c: scope_hint: In function ‘start_upload’
systemd-258/src/journal-remote/journal-upload.c:311:25: warning[-Wattribute-warning]: call to ‘Wcurl_easy_setopt_err_long’ declared with attribute warning: curl_easy_setopt expects a long argument
# 311 | easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0,
# | ^
# 309|
# 310| if (STRPTR_IN_SET(arg_trust, "-", "all"))
# 311|-> easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0,
# 312| LOG_ERR, return -EUCLEAN);
# 313| else if (arg_trust || startswith(u->url, "https://"))
Error: GCC_ANALYZER_WARNING (CWE-775):
systemd-258/src/nspawn/nspawn-setuid.c:30:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘<U3a18>[1]’
systemd-258/src/nspawn/nspawn-setuid.c:23:9: branch_false: following ‘false’ branch...
systemd-258/src/nspawn/nspawn-setuid.c:24:9: branch_false: ...to here
systemd-258/src/nspawn/nspawn-setuid.c:24:9: branch_false: following ‘false’ branch...
systemd-258/src/nspawn/nspawn-setuid.c:25:9: branch_false: ...to here
systemd-258/src/nspawn/nspawn-setuid.c:25:9: branch_false: following ‘false’ branch...
systemd-258/src/nspawn/nspawn-setuid.c:27:13: branch_false: ...to here
systemd-258/src/nspawn/nspawn-setuid.c:27:12: branch_false: following ‘false’ branch...
systemd-258/src/nspawn/nspawn-setuid.c:31:36: branch_false: ...to here
systemd-258/src/nspawn/nspawn-setuid.c:30:13: danger: ‘<U3a18>[1]’ leaks here
# 28| return log_error_errno(errno, "Failed to allocate pipe: %m");
# 29|
# 30|-> r = safe_fork_full("(getent)",
# 31| (int[]) { -EBADF, pipe_fds[1], -EBADF }, NULL, 0,
# 32| FORK_RESET_SIGNALS|FORK_CLOSE_ALL_FDS|FORK_DEATHSIG_SIGTERM|FORK_REARRANGE_STDIO|FORK_LOG|FORK_RLIMIT_NOFILE_SAFE,
Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258/src/resolve/resolved-dnssd.c:30:9: warning[-Wanalyzer-malloc-leak]: leak of ‘_b’
systemd-258/src/resolve/resolved-dnssd.c:537:5: enter_function: entry to ‘config_parse_dnssd_txt’
systemd-258/src/resolve/resolved-dnssd.c:550:37: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:553:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:553:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:554:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:554:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:555:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:555:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:557:13: call_function: inlined call to ‘isempty’ from ‘config_parse_dnssd_txt’
systemd-258/src/resolve/resolved-dnssd.c:563:20: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:564:12: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:576:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:578:20: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:578:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:580:20: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:580:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:585:21: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:586:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:588:20: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:599:28: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-dnssd.c:600:37: call_function: inlined call to ‘unbase64mem’ from ‘config_parse_dnssd_txt’
systemd-258/src/resolve/resolved-dnssd.c:601:36: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:603:36: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:610:29: call_function: calling ‘dnssd_txt_item_new_from_data’ from ‘config_parse_dnssd_txt’
systemd-258/src/resolve/resolved-dnssd.c:610:29: return_function: returning to ‘config_parse_dnssd_txt’ from ‘dnssd_txt_item_new_from_data’
systemd-258/src/resolve/resolved-dnssd.c:611:28: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:625:17: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:625:17: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:625:17: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:625:17: branch_true: following ‘true’ branch (when ‘last’ is NULL)...
systemd-258/src/resolve/resolved-dnssd.c:625:17: branch_true: ...to here
systemd-258/src/resolve/resolved-dnssd.c:625:17: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:625:17: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:576:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:578:20: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:549:54: call_function: inlined call to ‘dnssd_txtdata_freep’ from ‘config_parse_dnssd_txt’
<unknown>: branch_true: ...to here
systemd-258/src/resolve/resolved-dnssd.c:549:54: call_function: inlined call to ‘dnssd_txtdata_freep’ from ‘config_parse_dnssd_txt’
# 28| return NULL;
# 29|
# 30|-> dns_resource_record_unref(txt_data->rr);
# 31| dns_txt_item_free_all(txt_data->txts);
# 32|
Error: GCC_ANALYZER_WARNING (CWE-401):
systemd-258/src/resolve/resolved-dnssd.c:31:9: warning[-Wanalyzer-malloc-leak]: leak of ‘_b’
systemd-258/src/resolve/resolved-dnssd.c:537:5: enter_function: entry to ‘config_parse_dnssd_txt’
systemd-258/src/resolve/resolved-dnssd.c:550:37: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:553:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:553:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:554:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:554:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:555:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:555:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:557:13: call_function: inlined call to ‘isempty’ from ‘config_parse_dnssd_txt’
systemd-258/src/resolve/resolved-dnssd.c:563:20: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:564:12: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:576:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:578:20: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:578:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:580:20: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:580:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:585:21: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:586:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:588:20: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:599:28: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-dnssd.c:600:37: call_function: inlined call to ‘unbase64mem’ from ‘config_parse_dnssd_txt’
systemd-258/src/resolve/resolved-dnssd.c:601:36: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:603:36: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:610:29: call_function: calling ‘dnssd_txt_item_new_from_data’ from ‘config_parse_dnssd_txt’
systemd-258/src/resolve/resolved-dnssd.c:610:29: return_function: returning to ‘config_parse_dnssd_txt’ from ‘dnssd_txt_item_new_from_data’
systemd-258/src/resolve/resolved-dnssd.c:611:28: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:625:17: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:625:17: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:625:17: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:625:17: branch_true: following ‘true’ branch (when ‘last’ is NULL)...
systemd-258/src/resolve/resolved-dnssd.c:625:17: branch_true: ...to here
systemd-258/src/resolve/resolved-dnssd.c:625:17: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:625:17: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:549:54: call_function: inlined call to ‘dnssd_txtdata_freep’ from ‘config_parse_dnssd_txt’
<unknown>: branch_true: ...to here
systemd-258/src/resolve/resolved-dnssd.c:549:54: call_function: inlined call to ‘dnssd_txtdata_freep’ from ‘config_parse_dnssd_txt’
# 29|
# 30| dns_resource_record_unref(txt_data->rr);
# 31|-> dns_txt_item_free_all(txt_data->txts);
# 32|
# 33| return mfree(txt_data);