Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1]
libblockdev-3.4.0/src/plugins/lvm/lvm.c: scope_hint: In function 'get_lv_data_from_json'
libblockdev-3.4.0/src/plugins/lvm/lvm.c:559:28: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/include/glib-2.0/glib/glist.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/ghash.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:52: included_from: Included from here.
libblockdev-3.4.0/src/plugins/lvm/lvm.c:20: included_from: Included from here.
libblockdev-3.4.0/src/plugins/lvm/lvm.c:328:5: note: in expansion of macro 'g_free'
/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.
/usr/include/glib-2.0/glib/gstrfuncs.h:162:36: note: in definition of macro 'g_str_has_prefix'
/usr/include/glib-2.0/glib/gmem.h:335:57: note: in expansion of macro '_G_NEW'
libblockdev-3.4.0/src/plugins/lvm/lvm.c:554:26: note: in expansion of macro 'g_new0'
libblockdev-3.4.0/src/plugins/lvm/lvm.c:558:26: note: in expansion of macro 'g_strdup'
libblockdev-3.4.0/src/plugins/lvm/lvm.c: scope_hint: In function 'get_lv_data_from_json'
/usr/include/glib-2.0/glib/galloca.h:35: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/string.h:292:14: note: argument 1 of 'strrchr' must be non-null
#  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);

Scan Properties

analyzer-version-clippy1.94.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.94.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-136.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.20260308.181716.g94c371b.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namelibblockdev-3.4.0-99.20260319062402549955.master.220.g9dc822af
diffbase-store-results-to/tmp/tmpohtfzvtn/libblockdev-3.4.0-99.20260319062402549955.master.220.g9dc822af.tar.xz
diffbase-time-created2026-03-19 08:42:14
diffbase-time-finished2026-03-19 08:47:16
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,clippy,cppcheck,shellcheck,gcc' '-o' '/tmp/tmpohtfzvtn/libblockdev-3.4.0-99.20260319062402549955.master.220.g9dc822af.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpohtfzvtn/libblockdev-3.4.0-99.20260319062402549955.master.220.g9dc822af.src.rpm'
diffbase-tool-versioncsmock-3.8.4.20260302.153719.g8203630-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-136.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260308.181716.g94c371b.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namelibblockdev-3.4.0-1.20260319082905060367.pr1182.224.g8a186595
store-results-to/tmp/tmpt_phqp02/libblockdev-3.4.0-1.20260319082905060367.pr1182.224.g8a186595.tar.xz
time-created2026-03-19 08:48:15
time-finished2026-03-19 08:51:39
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,clippy,cppcheck,shellcheck,gcc' '-o' '/tmp/tmpt_phqp02/libblockdev-3.4.0-1.20260319082905060367.pr1182.224.g8a186595.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpt_phqp02/libblockdev-3.4.0-1.20260319082905060367.pr1182.224.g8a186595.src.rpm'
tool-versioncsmock-3.8.4.20260302.153719.g8203630-1.el9