Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1]
libblockdev-3.4.0/src/utils/dev_utils.c: scope_hint: In function '_is_block_device'
libblockdev-3.4.0/src/utils/dev_utils.c:38:9: warning[-Wanalyzer-null-argument]: use of NULL 'path' where non-null expected
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
libblockdev-3.4.0/src/utils/dev_utils.c:20: included_from: Included from here.
libblockdev-3.4.0/src/utils/dev_utils.c:70:16: note: in expansion of macro 'g_strdup'
libblockdev-3.4.0/src/utils/dev_utils.c: scope_hint: In function '_is_block_device'
libblockdev-3.4.0/src/utils/dev_utils.c:22: included_from: Included from here.
/usr/include/sys/stat.h:205:12: note: argument 1 of 'stat' must be non-null
#   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.93.0
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.1
analyzer-version-gcc-analyzer16.0.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.93.0
diffbase-analyzer-version-cppcheck2.19.1
diffbase-analyzer-version-gcc16.0.1
diffbase-analyzer-version-gcc-analyzer16.0.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-240.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.20260119.105402.g7a5be1b.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namelibblockdev-3.4.0-99.20260203071547111266.master.84.g1fbf7a8a
diffbase-store-results-to/tmp/tmpebroh374/libblockdev-3.4.0-99.20260203071547111266.master.84.g1fbf7a8a.tar.xz
diffbase-time-created2026-02-05 13:55:16
diffbase-time-finished2026-02-05 13:59:10
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,unicontrol,shellcheck,gcc,clippy' '-o' '/tmp/tmpebroh374/libblockdev-3.4.0-99.20260203071547111266.master.84.g1fbf7a8a.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpebroh374/libblockdev-3.4.0-99.20260203071547111266.master.84.g1fbf7a8a.src.rpm'
diffbase-tool-versioncsmock-3.8.3.20260128.181932.g41af877-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-240.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260119.105402.g7a5be1b.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namelibblockdev-3.4.0-1.20260205134443270932.pr1165.86.g78eeac0e
store-results-to/tmp/tmp1x5l09ri/libblockdev-3.4.0-1.20260205134443270932.pr1165.86.g78eeac0e.tar.xz
time-created2026-02-05 13:59:23
time-finished2026-02-05 14:03:03
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,unicontrol,shellcheck,gcc,clippy' '-o' '/tmp/tmp1x5l09ri/libblockdev-3.4.0-1.20260205134443270932.pr1165.86.g78eeac0e.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmp1x5l09ri/libblockdev-3.4.0-1.20260205134443270932.pr1165.86.g78eeac0e.src.rpm'
tool-versioncsmock-3.8.3.20260128.181932.g41af877-1.el9