Error: COMPILER_WARNING: [#def1] [important] 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): [#def2] 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): [#def3] 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): [#def4] 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): [#def5] 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... 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): [#def6] 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): [#def7] 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): [#def8] 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... 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’ 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): [#def9] 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... 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’ 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);
| analyzer-version-clippy | 1.90.0 |
| analyzer-version-cppcheck | 2.18.3 |
| analyzer-version-gcc | 15.2.1 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.90.0 |
| diffbase-analyzer-version-cppcheck | 2.18.3 |
| diffbase-analyzer-version-gcc | 15.2.1 |
| diffbase-analyzer-version-gcc-analyzer | 16.0.0 |
| diffbase-analyzer-version-shellcheck | 0.11.0 |
| diffbase-analyzer-version-unicontrol | 0.0.2 |
| diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| diffbase-exit-code | 0 |
| diffbase-host | ip-172-16-1-46.us-west-2.compute.internal |
| diffbase-known-false-positives | /usr/share/csmock/known-false-positives.js |
| diffbase-known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-gcc-latest-x86_64 |
| diffbase-project-name | systemd-258.1-2.fc44 |
| diffbase-store-results-to | /tmp/tmpr6ou8rj6/systemd-258.1-2.fc44.tar.xz |
| diffbase-time-created | 2025-10-28 20:50:38 |
| diffbase-time-finished | 2025-10-28 21:07:09 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpr6ou8rj6/systemd-258.1-2.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpr6ou8rj6/systemd-258.1-2.fc44.src.rpm' |
| diffbase-tool-version | csmock-3.8.3.20251027.143044.ge6b947b-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-46.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-gcc-latest-x86_64 |
| project-name | systemd-258-1.fc43 |
| store-results-to | /tmp/tmpr5dtugm5/systemd-258-1.fc43.tar.xz |
| time-created | 2025-10-28 20:31:43 |
| time-finished | 2025-10-28 20:48:44 |
| title | Fixed findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpr5dtugm5/systemd-258-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpr5dtugm5/systemd-258-1.fc43.src.rpm' |
| tool-version | csmock-3.8.3.20251027.143044.ge6b947b-1.el9 |