Error: GCC_ANALYZER_WARNING (CWE-476): [#def1] util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/tab.c: scope_hint: In function 'mnt_table_find_target' util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/tab.c:1196:24: warning[-Wanalyzer-null-dereference]: dereference of NULL 'fs' util-linux-2.41.devel-build/util-linux-2.41.devel/include/c.h:22: included_from: Included from here. util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/mountP.h:29: included_from: Included from here. util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/tab.c:52: included_from: Included from here. util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/mountP.h:32: included_from: Included from here. util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG' util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/tab.c:1714:9: note: in expansion of macro 'DBG' util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG' util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/tab.c:1720:17: note: in expansion of macro 'DBG' util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG' util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/tab.c:1100:9: note: in expansion of macro 'DBG' util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG' util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/tab.c:1154:9: note: in expansion of macro 'DBG' util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/mountP.h:63:25: note: in expansion of macro '__UL_DBG' util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/tab.c:1179:9: note: in expansion of macro 'DBG' util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/mountP.h:189:28: note: in expansion of macro 'IS_ITER_FORWARD' util-linux-2.41.devel-build/util-linux-2.41.devel/libmount/src/tab.c:868:17: note: in expansion of macro 'MNT_ITER_INIT' # 1194| char *p; # 1195| # 1196|-> if (!fs->target # 1197| || mnt_fs_is_swaparea(fs) # 1198| || mnt_fs_is_kernel(fs) Error: GCC_ANALYZER_WARNING (CWE-476): [#def2] util-linux-2.41.devel-build/util-linux-2.41.devel/misc-utils/waitpid.c: scope_hint: In function ‘parse_pids’ util-linux-2.41.devel-build/util-linux-2.41.devel/misc-utils/waitpid.c:54:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xcalloc(n_strings, 4) + i * 4’ util-linux-2.41.devel-build/util-linux-2.41.devel/include/strutils.h:52:64: note: in definition of macro ‘strtopid_or_err’ util-linux-2.41.devel-build/util-linux-2.41.devel/misc-utils/waitpid.c:54:55: note: in expansion of macro ‘_’ # 52| # 53| for (size_t i = 0; i < n_strings; i++) # 54|-> pids[i] = strtopid_or_err(strings[i], _("failed to parse pid")); # 55| # 56| return pids;
| analyzer-version-clippy | 1.81.0 |
| analyzer-version-cppcheck | 2.15.0 |
| analyzer-version-gcc | 14.2.1 |
| analyzer-version-gcc-analyzer | 14.2.1 |
| analyzer-version-shellcheck | 0.10.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.81.0 |
| diffbase-analyzer-version-cppcheck | 2.15.0 |
| diffbase-analyzer-version-gcc | 14.2.1 |
| diffbase-analyzer-version-gcc-analyzer | 14.2.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-182.us-west-2.compute.internal |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | util-linux-2.41.devel-1.20241010075106707491.master.759.g0567efc79 |
| diffbase-store-results-to | /tmp/tmpf0qd_a89/util-linux-2.41.devel-1.20241010075106707491.master.759.g0567efc79.tar.xz |
| diffbase-time-created | 2024-10-10 12:41:40 |
| diffbase-time-finished | 2024-10-10 12:49:56 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,clippy,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpf0qd_a89/util-linux-2.41.devel-1.20241010075106707491.master.759.g0567efc79.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '/tmp/tmpf0qd_a89/util-linux-2.41.devel-1.20241010075106707491.master.759.g0567efc79.src.rpm' |
| diffbase-tool-version | csmock-3.7.1-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-182.us-west-2.compute.internal |
| mock-config | fedora-rawhide-x86_64 |
| project-name | util-linux-2.41.devel-1.20241010122505841550.pr3092.794.ga302c504a |
| store-results-to | /tmp/tmp9xsx7_9x/util-linux-2.41.devel-1.20241010122505841550.pr3092.794.ga302c504a.tar.xz |
| time-created | 2024-10-10 12:50:16 |
| time-finished | 2024-10-10 12:58:00 |
| title | Newly introduced findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,clippy,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp9xsx7_9x/util-linux-2.41.devel-1.20241010122505841550.pr3092.794.ga302c504a.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '/tmp/tmp9xsx7_9x/util-linux-2.41.devel-1.20241010122505841550.pr3092.794.ga302c504a.src.rpm' |
| tool-version | csmock-3.7.1-1.el9 |