Error: GCC_ANALYZER_WARNING (CWE-688): [#def1] crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:152:12: warning[-Wanalyzer-null-argument]: use of NULL 'controllers' where non-null expected crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c: scope_hint: In function 'check_cgroup_v2_controller_available_wrapper' crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:314:16: note: in expansion of macro 'crun_make_error' <built-in>: note: argument 1 of '__builtin_strchr' must be non-null # 150| key = xstrdup (name); # 151| # 152|-> it = strchr (key, '.'); # 153| if (it == NULL) # 154| { Error: GCC_ANALYZER_WARNING (CWE-688): [#def2] crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:152:12: warning[-Wanalyzer-null-argument]: use of NULL ‘controllers’ where non-null expected crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c: scope_hint: In function ‘check_cgroup_v2_controller_available_wrapper’ crun-1.18.2-build/crun-1.18.2/src/libcrun/cgroup-resources.c:314:16: note: in expansion of macro ‘crun_make_error’ <built-in>: note: argument 1 of ‘__builtin_strchr’ must be non-null # 150| key = xstrdup (name); # 151| # 152|-> it = strchr (key, '.'); # 153| if (it == NULL) # 154| { Error: GCC_ANALYZER_WARNING (CWE-775): [#def3] crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:924:32: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(**_148.path, 0)' crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:796:17: note: in expansion of macro 'YAJL_IS_ARRAY' # 922| if (value == CLONE_NEWNET && def->linux->namespaces[i]->path != NULL) # 923| { # 924|-> inherit_new_net_fd = open (def->linux->namespaces[i]->path, open_flags_for_inherit); # 925| if (UNLIKELY (inherit_new_net_fd < 0)) # 926| return crun_make_error (err, errno, "unable to open(): `%s`", def->linux->namespaces[i]->path); Error: GCC_ANALYZER_WARNING (CWE-775): [#def4] crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:924:32: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(**_148.path, 0)’ crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:796:17: note: in expansion of macro ‘YAJL_IS_ARRAY’ # 922| if (value == CLONE_NEWNET && def->linux->namespaces[i]->path != NULL) # 923| { # 924|-> inherit_new_net_fd = open (def->linux->namespaces[i]->path, open_flags_for_inherit); # 925| if (UNLIKELY (inherit_new_net_fd < 0)) # 926| return crun_make_error (err, errno, "unable to open(): `%s`", def->linux->namespaces[i]->path); Error: GCC_ANALYZER_WARNING (CWE-775): [#def5] crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:933:32: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(**_165.path, 0)' crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:796:17: note: in expansion of macro 'YAJL_IS_ARRAY' # 931| if (value == CLONE_NEWPID && def->linux->namespaces[i]->path != NULL) # 932| { # 933|-> inherit_new_pid_fd = open (def->linux->namespaces[i]->path, open_flags_for_inherit); # 934| if (UNLIKELY (inherit_new_pid_fd < 0)) # 935| return crun_make_error (err, errno, "unable to open(): `%s`", def->linux->namespaces[i]->path); Error: GCC_ANALYZER_WARNING (CWE-775): [#def6] crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:933:32: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(**_165.path, 0)’ crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ crun-1.18.2-build/crun-1.18.2/src/libcrun/criu.c:796:17: note: in expansion of macro ‘YAJL_IS_ARRAY’ # 931| if (value == CLONE_NEWPID && def->linux->namespaces[i]->path != NULL) # 932| { # 933|-> inherit_new_pid_fd = open (def->linux->namespaces[i]->path, open_flags_for_inherit); # 934| if (UNLIKELY (inherit_new_pid_fd < 0)) # 935| return crun_make_error (err, errno, "unable to open(): `%s`", def->linux->namespaces[i]->path); Error: GCC_ANALYZER_WARNING (CWE-401): [#def7] crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:21: included_from: Included from here. crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: scope_hint: In function 'read_dir_entries' crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: warning[-Wanalyzer-malloc-leak]: leak of 'xmalloc(128)' crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' # 60| { # 61| void *res = malloc (size); # 62|-> if (UNLIKELY (res == NULL)) # 63| OOM (); # 64| return res; Error: GCC_ANALYZER_WARNING (CWE-401): [#def8] crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.c:21: included_from: Included from here. crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: scope_hint: In function ‘read_dir_entries’ crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:62:21: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(128)’ crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ # 60| { # 61| void *res = malloc (size); # 62|-> if (UNLIKELY (res == NULL)) # 63| OOM (); # 64| return res; Error: GCC_ANALYZER_WARNING (CWE-401): [#def9] crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:21: warning[-Wanalyzer-malloc-leak]: leak of 'xrealloc(entries, entries_size * 16)' crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' # 78| { # 79| void *res = realloc (ptr, size); # 80|-> if (UNLIKELY (res == NULL)) # 81| OOM (); # 82| return res; Error: GCC_ANALYZER_WARNING (CWE-401): [#def10] crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: scope_hint: In function 'read_dir_entries' crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:21: warning[-Wanalyzer-malloc-leak]: leak of 'xrealloc(entries, (n_entries + 1) * 8)' crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro 'UNLIKELY' # 78| { # 79| void *res = realloc (ptr, size); # 80|-> if (UNLIKELY (res == NULL)) # 81| OOM (); # 82| return res; Error: GCC_ANALYZER_WARNING (CWE-401): [#def11] crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:21: warning[-Wanalyzer-malloc-leak]: leak of ‘xrealloc(entries, entries_size * 16)’ crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ # 78| { # 79| void *res = realloc (ptr, size); # 80|-> if (UNLIKELY (res == NULL)) # 81| OOM (); # 82| return res; Error: GCC_ANALYZER_WARNING (CWE-401): [#def12] crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: scope_hint: In function ‘read_dir_entries’ crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:80:21: warning[-Wanalyzer-malloc-leak]: leak of ‘xrealloc(entries, (n_entries + 1) * 8)’ crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:56:40: note: in definition of macro ‘UNLIKELY’ # 78| { # 79| void *res = realloc (ptr, size); # 80|-> if (UNLIKELY (res == NULL)) # 81| OOM (); # 82| return res; Error: GCC_ANALYZER_WARNING (CWE-401): [#def13] crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: scope_hint: In function 'read_dir_entries' crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: warning[-Wanalyzer-malloc-leak]: leak of 'xstrdup(&*<unknown>.d_name)' # 220| # 221| ret = strdup (str); # 222|-> if (ret == NULL) # 223| OOM (); # 224| Error: GCC_ANALYZER_WARNING (CWE-401): [#def14] crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h: scope_hint: In function ‘read_dir_entries’ crun-1.18.2-build/crun-1.18.2/src/libcrun/utils.h:222:6: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(&*<unknown>.d_name)’ # 220| # 221| ret = strdup (str); # 222|-> if (ret == NULL) # 223| OOM (); # 224|
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
diffbase-analyzer-version-clippy | 1.82.0 |
diffbase-analyzer-version-cppcheck | 2.16.0 |
diffbase-analyzer-version-gcc | 14.2.1 |
diffbase-analyzer-version-gcc-analyzer | 15.0.0 |
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-56.us-west-2.compute.internal |
diffbase-mock-config | fedora-rawhide-gcc-latest-x86_64 |
diffbase-project-name | crun-1.17-1.fc41 |
diffbase-store-results-to | /tmp/tmp6dxn6ovq/crun-1.17-1.fc41.tar.xz |
diffbase-time-created | 2024-11-12 23:20:27 |
diffbase-time-finished | 2024-11-12 23:27:01 |
diffbase-tool | csmock |
diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp6dxn6ovq/crun-1.17-1.fc41.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp6dxn6ovq/crun-1.17-1.fc41.src.rpm' |
diffbase-tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-56.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | crun-1.18.2-1.fc42 |
store-results-to | /tmp/tmpvg03j16k/crun-1.18.2-1.fc42.tar.xz |
time-created | 2024-11-12 23:27:17 |
time-finished | 2024-11-12 23:33:39 |
title | Newly introduced findings |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpvg03j16k/crun-1.18.2-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpvg03j16k/crun-1.18.2-1.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |