Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1]
libblockdev-3.5.0/src/plugins/lvm/lvm.c:559:28: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
libblockdev-3.5.0/src/plugins/lvm/lvm.c:1824:15: enter_function: entry to 'bd_lvm_lvs_tree'
libblockdev-3.5.0/src/plugins/lvm/lvm.c:1836:8: branch_true: following 'true' branch (when 'vg_name' is non-NULL)...
libblockdev-3.5.0/src/plugins/lvm/lvm.c:1837:9: branch_true: ...to here
libblockdev-3.5.0/src/plugins/lvm/lvm.c:1839:16: call_function: calling 'call_lvm_and_parse_json_report' from 'bd_lvm_lvs_tree'
libblockdev-3.5.0/src/plugins/lvm/lvm.c:1839:16: return_function: returning to 'bd_lvm_lvs_tree' from 'call_lvm_and_parse_json_report'
libblockdev-3.5.0/src/plugins/lvm/lvm.c:1840:8: branch_false: following 'false' branch...
libblockdev-3.5.0/src/plugins/lvm/lvm.c:1840:8: branch_false: ...to here
libblockdev-3.5.0/src/plugins/lvm/lvm.c:1851:23: branch_true: following 'true' branch...
libblockdev-3.5.0/src/plugins/lvm/lvm.c:1852:30: branch_true: ...to here
libblockdev-3.5.0/src/plugins/lvm/lvm.c:1853:31: call_function: calling 'get_lv_data_from_json' from 'bd_lvm_lvs_tree'
#  557|   
#  558|               gchar *dev = g_strdup (json_array_get_string_element (array, 0));
#  559|->             gchar *paren = strrchr (dev, '(');
#  560|               if (paren) {
#  561|                   data->segs[0]->pv_start_pe = g_ascii_strtoull (paren + 1, NULL, 10);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def2]
libblockdev-3.5.0/src/utils/dev_utils.c:38:9: warning[-Wanalyzer-null-argument]: use of NULL 'path' where non-null expected
libblockdev-3.5.0/src/utils/dev_utils.c:62:8: enter_function: entry to 'bd_utils_resolve_device'
libblockdev-3.5.0/src/utils/dev_utils.c:67:8: branch_false: following 'false' branch (when '_result != 0')...
libblockdev-3.5.0/src/utils/dev_utils.c:70:16: call_function: inlined call to 'g_strdup_inline' from 'bd_utils_resolve_device'
libblockdev-3.5.0/src/utils/dev_utils.c:72:15: release_memory: 'path' is NULL
libblockdev-3.5.0/src/utils/dev_utils.c:73:8: branch_true: following 'true' branch...
libblockdev-3.5.0/src/utils/dev_utils.c:74:13: branch_true: ...to here
libblockdev-3.5.0/src/utils/dev_utils.c:74:12: branch_true: following 'true' branch...
libblockdev-3.5.0/src/utils/dev_utils.c:76:13: branch_true: ...to here
libblockdev-3.5.0/src/utils/dev_utils.c:77:17: call_function: calling '_is_block_device' from 'bd_utils_resolve_device'
#   36|       struct stat sb;
#   37|   
#   38|->     if (stat (path, &sb) != 0) {
#   39|           g_set_error (error, BD_UTILS_DEV_UTILS_ERROR, BD_UTILS_DEV_UTILS_ERROR_FAILED,
#   40|                        "Failed to stat '%s': %s", path, strerror_l (errno, _C_LOCALE));

Scan Properties

analyzer-version-clippy1.97.1
analyzer-version-cppcheck2.21.1
analyzer-version-gcc16.1.1
analyzer-version-gcc-analyzer16.1.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.97.1
diffbase-analyzer-version-cppcheck2.21.1
diffbase-analyzer-version-gcc16.1.1
diffbase-analyzer-version-gcc-analyzer16.1.1
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-224.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namelibblockdev-3.4.0-2.fc44
diffbase-store-results-to/tmp/tmpjjnsmoht/libblockdev-3.4.0-2.fc44.tar.xz
diffbase-time-created2026-08-03 16:56:09
diffbase-time-finished2026-08-03 16:59:32
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpjjnsmoht/libblockdev-3.4.0-2.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpjjnsmoht/libblockdev-3.4.0-2.fc44.src.rpm'
diffbase-tool-versioncsmock-3.8.7.20260803.142340.gb75b18e-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-224.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namelibblockdev-3.5.0-4.fc45
store-results-to/tmp/tmpbl2sbg7q/libblockdev-3.5.0-4.fc45.tar.xz
time-created2026-08-03 16:59:55
time-finished2026-08-03 17:02:28
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpbl2sbg7q/libblockdev-3.5.0-4.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpbl2sbg7q/libblockdev-3.5.0-4.fc45.src.rpm'
tool-versioncsmock-3.8.7.20260803.142340.gb75b18e-1.el9