libblockdev-3.1.1-8.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/lib/blockdev.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/lib/tmp-introspectqez6hsty/BlockDev-3.0.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def3]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/lib/tmp-introspectqez6hsty/BlockDev-3.0.c:799:27: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error')

Error: CPPCHECK_WARNING: [#def4]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/btrfs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def5]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/check_deps.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def6]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/crypto.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def7]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/crypto.c: scope_hint: In function 'bd_crypto_escrow_device'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/crypto.c:3109:56: warning[-Wanalyzer-null-argument]: use of NULL 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.1.1-build/libblockdev-3.1.1/src/plugins/crypto.c:21: included_from: Included from here.
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/crypto.c:3096:23: note: in expansion of macro 'g_strdup'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/crypto.c: scope_hint: In function 'bd_crypto_escrow_device'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/crypto.c:3108:22: note: in expansion of macro 'g_strdup'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/crypto.c: scope_hint: In function 'bd_crypto_escrow_device'
<built-in>: note: argument 1 of '__builtin_strlen' must be non-null
# 3107|   
# 3108|       cert_data_copy = g_strdup (cert_data);
# 3109|->     cert = CERT_DecodeCertFromPackage (cert_data_copy, strlen (cert_data_copy));
# 3110|       if (!cert) {
# 3111|           g_set_error (&l_error, BD_CRYPTO_ERROR, BD_CRYPTO_ERROR_CERT_DECODE,

Error: CPPCHECK_WARNING: [#def8]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/dm.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def9]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/fs/btrfs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def10]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/fs/common.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def11]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/fs/exfat.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def12]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/fs/ext.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def13]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/fs/f2fs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def14]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/fs/generic.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def15]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/fs/mount.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def16]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/fs/nilfs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def17]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/fs/ntfs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def18]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/fs/udf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def19]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/fs/vfat.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def20]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/fs/xfs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def21]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/loop.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def22]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/loop.c: scope_hint: In function 'bd_loop_info'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/loop.c:157:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(<unknown>, 0)'
#  155|           dev_loop = g_strdup_printf ("/dev/%s", loop);
#  156|   
#  157|->     fd = open (dev_loop ? dev_loop : loop, O_RDONLY);
#  158|       if (fd < 0) {
#  159|           g_set_error (error, BD_LOOP_ERROR, BD_LOOP_ERROR_DEVICE,

Error: CPPCHECK_WARNING: [#def23]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/lvm-dbus.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def24]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/lvm.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def25]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/mdraid.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def26]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/mpath.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def27]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvdimm.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def28]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def29]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c: scope_hint: In function 'bd_nvme_get_controller_info'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:492:17: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:20: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:562:8: note: in expansion of macro 'G_LIKELY'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:479:5: note: in expansion of macro 'g_warn_if_fail'
/usr/include/glib-2.0/glib.h:64: included_from: Included from here.
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:479:5: note: in expansion of macro 'g_warn_if_fail'
#  490|   
#  491|       info = g_new0 (BDNVMEControllerInfo, 1);
#  492|->     if ((ctrl_id->cmic & NVME_CTRL_CMIC_MULTI_PORT) == NVME_CTRL_CMIC_MULTI_PORT)
#  493|           info->features |= BD_NVME_CTRL_FEAT_MULTIPORT;
#  494|       if ((ctrl_id->cmic & NVME_CTRL_CMIC_MULTI_CTRL) == NVME_CTRL_CMIC_MULTI_CTRL)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def30]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c: scope_hint: In function 'bd_nvme_get_namespace_info'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:636:50: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
/usr/lib64/glib-2.0/include/glibconfig.h:163:45: note: in definition of macro 'GUINT32_TO_LE'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:636:26: note: in expansion of macro 'GUINT32_FROM_LE'
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:562:8: note: in expansion of macro 'G_LIKELY'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:620:5: note: in expansion of macro 'g_warn_if_fail'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:620:5: note: in expansion of macro 'g_warn_if_fail'
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:562:8: note: in expansion of macro 'G_LIKELY'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:632:5: note: in expansion of macro 'g_warn_if_fail'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:632:5: note: in expansion of macro 'g_warn_if_fail'
/usr/lib64/glib-2.0/include/glibconfig.h:163:45: note: in definition of macro 'GUINT32_TO_LE'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:636:26: note: in expansion of macro 'GUINT32_FROM_LE'
/usr/lib64/glib-2.0/include/glibconfig.h:163:45: note: in definition of macro 'GUINT32_TO_LE'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:636:26: note: in expansion of macro 'GUINT32_FROM_LE'
#  634|   
#  635|       /* send the NVME_IDENTIFY_CNS_NS_DESC_LIST ioctl, NVMe 1.3 */
#  636|->     if (ret_ctrl == 0 && GUINT32_FROM_LE (ctrl_id->ver) >= 0x10300) {
#  637|           descs = _nvme_alloc (NVME_IDENTIFY_DATA_SIZE);
#  638|           g_warn_if_fail (descs != NULL);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def31]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:652:43: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
/usr/lib64/glib-2.0/include/glibconfig.h:168:45: note: in definition of macro 'GUINT64_TO_LE'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:652:19: note: in expansion of macro 'GUINT64_FROM_LE'
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:562:8: note: in expansion of macro 'G_LIKELY'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:620:5: note: in expansion of macro 'g_warn_if_fail'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:620:5: note: in expansion of macro 'g_warn_if_fail'
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:562:8: note: in expansion of macro 'G_LIKELY'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:632:5: note: in expansion of macro 'g_warn_if_fail'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:632:5: note: in expansion of macro 'g_warn_if_fail'
/usr/lib64/glib-2.0/include/glibconfig.h:168:45: note: in definition of macro 'GUINT64_TO_LE'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:652:19: note: in expansion of macro 'GUINT64_FROM_LE'
#  650|       info = g_new0 (BDNVMENamespaceInfo, 1);
#  651|       info->nsid = nsid;
#  652|->     info->nsize = GUINT64_FROM_LE (ns_info->nsze);
#  653|       info->ncap = GUINT64_FROM_LE (ns_info->ncap);
#  654|       info->nuse = GUINT64_FROM_LE (ns_info->nuse);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def32]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c: scope_hint: In function 'bd_nvme_get_smart_log'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:788:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:562:8: note: in expansion of macro 'G_LIKELY'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:763:5: note: in expansion of macro 'g_warn_if_fail'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:763:5: note: in expansion of macro 'g_warn_if_fail'
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:562:8: note: in expansion of macro 'G_LIKELY'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:775:5: note: in expansion of macro 'g_warn_if_fail'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:775:5: note: in expansion of macro 'g_warn_if_fail'
#  786|   
#  787|       log = g_new0 (BDNVMESmartLog, 1);
#  788|->     if ((smart_log->critical_warning & NVME_SMART_CRIT_SPARE) == NVME_SMART_CRIT_SPARE)
#  789|           log->critical_warning |= BD_NVME_SMART_CRITICAL_WARNING_SPARE;
#  790|       if ((smart_log->critical_warning & NVME_SMART_CRIT_TEMPERATURE) == NVME_SMART_CRIT_TEMPERATURE)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def33]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:819:47: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
/usr/lib64/glib-2.0/include/glibconfig.h:158:45: note: in definition of macro 'GUINT16_TO_LE'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:819:23: note: in expansion of macro 'GUINT16_FROM_LE'
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:562:8: note: in expansion of macro 'G_LIKELY'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:763:5: note: in expansion of macro 'g_warn_if_fail'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:763:5: note: in expansion of macro 'g_warn_if_fail'
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:562:8: note: in expansion of macro 'G_LIKELY'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:775:5: note: in expansion of macro 'g_warn_if_fail'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c: scope_hint: In function 'bd_nvme_get_smart_log'
/usr/lib64/glib-2.0/include/glibconfig.h:158:45: note: in definition of macro 'GUINT16_TO_LE'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:814:32: note: in expansion of macro 'GUINT16_FROM_LE'
/usr/lib64/glib-2.0/include/glibconfig.h:158:45: note: in definition of macro 'GUINT16_TO_LE'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:819:23: note: in expansion of macro 'GUINT16_FROM_LE'
#  817|   
#  818|       if (ret_identify == 0) {
#  819|->         log->wctemp = GUINT16_FROM_LE (ctrl_id->wctemp);
#  820|           log->cctemp = GUINT16_FROM_LE (ctrl_id->cctemp);
#  821|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def34]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c: scope_hint: In function 'bd_nvme_get_error_log_entries'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:878:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:562:8: note: in expansion of macro 'G_LIKELY'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:868:5: note: in expansion of macro 'g_warn_if_fail'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:868:5: note: in expansion of macro 'g_warn_if_fail'
#  876|       }
#  877|   
#  878|->     elpe = ctrl_id->elpe + 1;
#  879|       free (ctrl_id);
#  880|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def35]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:897:40: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
/usr/lib64/glib-2.0/include/glibconfig.h:168:45: note: in definition of macro 'GUINT64_TO_LE'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:897:13: note: in expansion of macro 'GUINT64_FROM_LE'
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:562:8: note: in expansion of macro 'G_LIKELY'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:868:5: note: in expansion of macro 'g_warn_if_fail'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c: scope_hint: In function 'bd_nvme_get_error_log_entries'
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:562:8: note: in expansion of macro 'G_LIKELY'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:883:5: note: in expansion of macro 'g_warn_if_fail'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:883:5: note: in expansion of macro 'g_warn_if_fail'
/usr/lib64/glib-2.0/include/glibconfig.h:168:45: note: in definition of macro 'GUINT64_TO_LE'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:897:13: note: in expansion of macro 'GUINT64_FROM_LE'
/usr/lib64/glib-2.0/include/glibconfig.h:168:45: note: in definition of macro 'GUINT64_TO_LE'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:897:13: note: in expansion of macro 'GUINT64_FROM_LE'
/usr/lib64/glib-2.0/include/glibconfig.h:168:45: note: in definition of macro 'GUINT64_TO_LE'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:897:13: note: in expansion of macro 'GUINT64_FROM_LE'
#  895|       ptr_array = g_ptr_array_new ();
#  896|       for (i = 0; i < elpe; i++) {
#  897|->         if (GUINT64_FROM_LE (err_log[i].error_count) > 0) {
#  898|               BDNVMEErrorLogEntry *entry;
#  899|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def36]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c: scope_hint: In function 'bd_nvme_get_self_test_log'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:961:26: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:562:8: note: in expansion of macro 'G_LIKELY'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:949:5: note: in expansion of macro 'g_warn_if_fail'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:949:5: note: in expansion of macro 'g_warn_if_fail'
#  959|   
#  960|       log = g_new0 (BDNVMESelfTestLog, 1);
#  961|->     switch (self_test_log->current_operation & NVME_ST_CURR_OP_MASK) {
#  962|           case NVME_ST_CURR_OP_NOT_RUNNING:
#  963|               log->current_operation = BD_NVME_SELF_TEST_ACTION_NOT_RUNNING;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def37]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c: scope_hint: In function 'bd_nvme_get_sanitize_log'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:1106:11: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro '_G_BOOLEAN_EXPR_IMPL'
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro '_G_BOOLEAN_EXPR'
/usr/include/glib-2.0/glib/gmessages.h:562:8: note: in expansion of macro 'G_LIKELY'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:1093:5: note: in expansion of macro 'g_warn_if_fail'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/nvme/nvme-info.c:1093:5: note: in expansion of macro 'g_warn_if_fail'
# 1104|       log = g_new0 (BDNVMESanitizeLog, 1);
# 1105|       log->sanitize_progress = 0;
# 1106|->     sstat = GUINT16_FROM_LE (sanitize_log->sstat);
# 1107|       if ((sstat & NVME_SANITIZE_SSTAT_STATUS_MASK) == NVME_SANITIZE_SSTAT_STATUS_IN_PROGESS)
# 1108|           log->sanitize_progress = ((gdouble) GUINT16_FROM_LE (sanitize_log->sprog) * 100) / 0x10000;

Error: CPPCHECK_WARNING: [#def38]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/part.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def39]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/part.c: scope_hint: In function 'bd_part_delete_part'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/part.c:1351:55: warning[-Wanalyzer-null-dereference]: dereference of NULL 'l_error'
# 1349|       part_num = get_part_num (part, &l_error);
# 1350|       if (part_num == -1) {
# 1351|->         bd_utils_report_finished (progress_id, l_error->message);
# 1352|           g_propagate_error (error, l_error);
# 1353|           return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def40]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/part.c: scope_hint: In function 'bd_part_resize_part'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/part.c:1513:55: warning[-Wanalyzer-null-dereference]: dereference of NULL 'l_error'
# 1511|       part_num = get_part_num (part, &l_error);
# 1512|       if (part_num == -1) {
# 1513|->         bd_utils_report_finished (progress_id, l_error->message);
# 1514|           g_propagate_error (error, l_error);
# 1515|           return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def41]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/part.c: scope_hint: In function 'bd_part_set_part_name'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/part.c:1829:55: warning[-Wanalyzer-null-dereference]: dereference of NULL 'l_error'
# 1827|       if (part_num == -1) {
# 1828|           close_context (cxt);
# 1829|->         bd_utils_report_finished (progress_id, l_error->message);
# 1830|           g_propagate_error (error, l_error);
# 1831|           return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def42]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/part.c: scope_hint: In function 'bd_part_set_part_type'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/part.c:1910:55: warning[-Wanalyzer-null-dereference]: dereference of NULL 'l_error'
# 1908|       part_num = get_part_num (part, &l_error);
# 1909|       if (part_num == -1) {
# 1910|->         bd_utils_report_finished (progress_id, l_error->message);
# 1911|           g_propagate_error (error, l_error);
# 1912|           return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def43]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/part.c: scope_hint: In function 'bd_part_set_part_id'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/part.c:1969:55: warning[-Wanalyzer-null-dereference]: dereference of NULL 'l_error'
# 1967|       part_num = get_part_num (part, &l_error);
# 1968|       if (part_num == -1) {
# 1969|->         bd_utils_report_finished (progress_id, l_error->message);
# 1970|           g_propagate_error (error, l_error);
# 1971|           return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def44]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/part.c: scope_hint: In function 'bd_part_set_part_uuid'
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/part.c:2060:55: warning[-Wanalyzer-null-dereference]: dereference of NULL 'l_error'
# 2058|       if (part_num == -1) {
# 2059|           close_context (cxt);
# 2060|->         bd_utils_report_finished (progress_id, l_error->message);
# 2061|           g_propagate_error (error, l_error);
# 2062|           return FALSE;

Error: CPPCHECK_WARNING: [#def45]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/plugins/swap.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def46]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/utils/dbus.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def47]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/utils/dev_utils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def48]
libblockdev-3.1.1-build/libblockdev-3.1.1/src/utils/exec.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def49]
libblockdev-3.1.1-build/libblockdev-3.1.1/tools/lvm-cache-stats.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def50]
libblockdev-3.1.1-build/libblockdev-3.1.1/tools/vfat-resize.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-47.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namelibblockdev-3.1.1-8.fc41
store-results-to/tmp/tmpxl8s0fzr/libblockdev-3.1.1-8.fc41.tar.xz
time-created2024-07-03 14:40:17
time-finished2024-07-03 14:43:00
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpxl8s0fzr/libblockdev-3.1.1-8.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpxl8s0fzr/libblockdev-3.1.1-8.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9