Error: GCC_ANALYZER_WARNING (CWE-688): [#def1] crun-HEAD/src/libcrun/cgroup-resources.c:153:12: warning[-Wanalyzer-null-argument]: use of NULL 'controllers' where non-null expected <built-in>: note: argument 1 of '__builtin_strchr' must be non-null # 151| key = xstrdup (name); # 152| # 153|-> it = strchr (key, '.'); # 154| if (it == NULL) # 155| { Error: GCC_ANALYZER_WARNING (CWE-688): [#def2] crun-HEAD/src/libcrun/cgroup-systemd.c: scope_hint: In function 'bpfprog_path_from_scope' crun-HEAD/src/libcrun/cgroup-systemd.c:1378:16: warning[-Wanalyzer-null-argument]: use of NULL 'it' where non-null expected crun-HEAD/src/libcrun/cgroup-internal.h:22: included_from: Included from here. crun-HEAD/src/libcrun/cgroup-systemd.c:23: included_from: Included from here. <built-in>: note: argument 1 of '__builtin_strchr' must be non-null # 1376| /* Remove dots as EBPF code don't like them. */ # 1377| it = flat_scope; # 1378|-> while ((it = strchr (it, '.')) != NULL) # 1379| *it = '_'; # 1380| Error: GCC_ANALYZER_WARNING (CWE-688): [#def3] crun-HEAD/src/libcrun/cgroup-systemd.c: scope_hint: In function 'get_cgroup_scope_path' crun-HEAD/src/libcrun/cgroup-systemd.c:2009:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected <built-in>: note: argument 1 of '__builtin_strchr' must be non-null # 2007| path_to_scope = xstrdup (cgroup_path); # 2008| # 2009|-> cur = strchr (path_to_scope, '/'); # 2010| while (cur) # 2011| { Error: GCC_ANALYZER_WARNING (CWE-401): [#def4] crun-HEAD/src/libcrun/cgroup-systemd.c: scope_hint: In function 'libcrun_destroy_cgroup_systemd' crun-HEAD/src/libcrun/cgroup-systemd.c:2010:10: warning[-Wanalyzer-malloc-leak]: leak of 'get_cgroup_scope_path(*cgroup_status.path, *cgroup_status.scope)' # 2008| # 2009| cur = strchr (path_to_scope, '/'); # 2010|-> while (cur) # 2011| { # 2012| char *next = strchr (cur + 1, '/'); Error: GCC_ANALYZER_WARNING (CWE-401): [#def5] crun-HEAD/src/libcrun/cgroup-systemd.c:2012:32: warning[-Wanalyzer-malloc-leak]: leak of 'get_cgroup_scope_path(*cgroup_status.path, *cgroup_status.scope)' # 2010| while (cur) # 2011| { # 2012|-> char *next = strchr (cur + 1, '/'); # 2013| if (next == NULL) # 2014| break; Error: GCC_ANALYZER_WARNING (CWE-476): [#def6] crun-HEAD/src/libcrun/container.c: scope_hint: In function 'libcrun_container_update' crun-HEAD/src/libcrun/container.c:3986:29: warning[-Wanalyzer-null-dereference]: dereference of NULL 'container' crun-HEAD/src/libcrun/container.c:582:7: note: in expansion of macro 'crun_make_error' crun-HEAD/src/libcrun/container.c:1626:12: note: in expansion of macro 'crun_make_error' # 3984| } # 3985| # 3986|-> dedup_resources (container->container_def->linux->resources, resources); # 3987| ret = libcrun_linux_container_update (&status, state_root, resources, err); # 3988| Error: GCC_ANALYZER_WARNING (CWE-1341): [#def7] crun-HEAD/src/libcrun/utils.h:108:25: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor '<unknown>' crun-HEAD/src/libcrun/utils.h: scope_hint: In function 'cleanup_closep.part.0' # 106| int *pp = (int *) p; # 107| if (*pp >= 0) # 108|-> TEMP_FAILURE_RETRY (close (*pp)); # 109| } # 110|
| analyzer-version-clippy | 1.88.0 |
| analyzer-version-cppcheck | 2.17.1 |
| analyzer-version-gcc | 15.1.1 |
| analyzer-version-gcc-analyzer | 15.1.1 |
| analyzer-version-shellcheck | 0.10.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.88.0 |
| diffbase-analyzer-version-cppcheck | 2.17.1 |
| diffbase-analyzer-version-gcc | 15.1.1 |
| diffbase-analyzer-version-gcc-analyzer | 15.1.1 |
| diffbase-analyzer-version-shellcheck | 0.10.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-217.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-x86_64 |
| diffbase-project-name | crun-1.22-1.20250707150928550524.main.27.gd3b2b788 |
| diffbase-store-results-to | /tmp/tmphhqnzhso/crun-1.22-1.20250707150928550524.main.27.gd3b2b788.tar.xz |
| diffbase-time-created | 2025-07-08 03:34:43 |
| diffbase-time-finished | 2025-07-08 03:46:07 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,unicontrol,gcc,clippy,cppcheck' '-o' '/tmp/tmphhqnzhso/crun-1.22-1.20250707150928550524.main.27.gd3b2b788.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmphhqnzhso/crun-1.22-1.20250707150928550524.main.27.gd3b2b788.src.rpm' |
| diffbase-tool-version | csmock-3.8.1.20250626.171830.gc374be3-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-217.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-x86_64 |
| project-name | crun-1.22-1.20250708032359486583.pr1795.32.g0c6a1532 |
| store-results-to | /tmp/tmptdsbdkex/crun-1.22-1.20250708032359486583.pr1795.32.g0c6a1532.tar.xz |
| time-created | 2025-07-08 03:49:01 |
| time-finished | 2025-07-08 04:10:52 |
| title | Newly introduced findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,unicontrol,gcc,clippy,cppcheck' '-o' '/tmp/tmptdsbdkex/crun-1.22-1.20250708032359486583.pr1795.32.g0c6a1532.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmptdsbdkex/crun-1.22-1.20250708032359486583.pr1795.32.g0c6a1532.src.rpm' |
| tool-version | csmock-3.8.1.20250626.171830.gc374be3-1.el9 |