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:561: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:556:26: note: in expansion of macro 'g_new0'
libblockdev-3.4.0/src/plugins/lvm/lvm.c:560: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
#  559|   
#  560|               gchar *dev = g_strdup (json_array_get_string_element (array, 0));
#  561|->             gchar *paren = strrchr (dev, '(');
#  562|               if (paren) {
#  563|                   data->segs[0]->pv_start_pe = atoi (paren + 1);

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-215.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.20260312060651429955.master.188.gfbd0cee5
diffbase-store-results-to/tmp/tmpjud5hfi7/libblockdev-3.4.0-99.20260312060651429955.master.188.gfbd0cee5.tar.xz
diffbase-time-created2026-03-13 11:16:20
diffbase-time-finished2026-03-13 11:19:27
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,clippy,cppcheck,shellcheck,gcc' '-o' '/tmp/tmpjud5hfi7/libblockdev-3.4.0-99.20260312060651429955.master.188.gfbd0cee5.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpjud5hfi7/libblockdev-3.4.0-99.20260312060651429955.master.188.gfbd0cee5.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-215.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.20260313110550206146.pr1182.191.g46a84ebb
store-results-to/tmp/tmpgv2_qh6v/libblockdev-3.4.0-1.20260313110550206146.pr1182.191.g46a84ebb.tar.xz
time-created2026-03-13 11:19:45
time-finished2026-03-13 11:22:18
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,clippy,cppcheck,shellcheck,gcc' '-o' '/tmp/tmpgv2_qh6v/libblockdev-3.4.0-1.20260313110550206146.pr1182.191.g46a84ebb.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpgv2_qh6v/libblockdev-3.4.0-1.20260313110550206146.pr1182.191.g46a84ebb.src.rpm'
tool-versioncsmock-3.8.4.20260302.153719.g8203630-1.el9