Fixed findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1]
libblockdev-3.5.0/src/utils/dev_utils.c: scope_hint: In function '_is_block_device'
libblockdev-3.5.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.5.0/src/utils/dev_utils.c:20: included_from: Included from here.
libblockdev-3.5.0/src/utils/dev_utils.c:70:16: note: in expansion of macro 'g_strdup'
libblockdev-3.5.0/src/utils/dev_utils.c: scope_hint: In function '_is_block_device'
libblockdev-3.5.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.95.0
analyzer-version-cppcheck2.20.0
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.95.0
diffbase-analyzer-version-cppcheck2.20.0
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-70.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.20260420.180315.gd39a405.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namelibblockdev-3.5.0-1.20260429134713097879.pr1196.6.g991fa6be
diffbase-store-results-to/tmp/tmpzqwxh2ig/libblockdev-3.5.0-1.20260429134713097879.pr1196.6.g991fa6be.tar.xz
diffbase-time-created2026-04-29 14:00:07
diffbase-time-finished2026-04-29 14:02:46
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,shellcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmpzqwxh2ig/libblockdev-3.5.0-1.20260429134713097879.pr1196.6.g991fa6be.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpzqwxh2ig/libblockdev-3.5.0-1.20260429134713097879.pr1196.6.g991fa6be.src.rpm'
diffbase-tool-versioncsmock-3.8.5-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-70.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260420.180315.gd39a405.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namelibblockdev-3.5.0-99.20260428070255019760.master.4.g454ce04d
store-results-to/tmp/tmpkh83om7s/libblockdev-3.5.0-99.20260428070255019760.master.4.g454ce04d.tar.xz
time-created2026-04-29 13:56:42
time-finished2026-04-29 13:59:54
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,shellcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmpkh83om7s/libblockdev-3.5.0-99.20260428070255019760.master.4.g454ce04d.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpkh83om7s/libblockdev-3.5.0-99.20260428070255019760.master.4.g454ce04d.src.rpm'
tool-versioncsmock-3.8.5-1.el9