libosinfo-1.11.0-6.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
libosinfo-1.11.0-build/libosinfo-1.11.0/osinfo/osinfo_db.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2]
libosinfo-1.11.0-build/libosinfo-1.11.0/osinfo/osinfo_filter.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def3]
libosinfo-1.11.0-build/libosinfo-1.11.0/osinfo/osinfo_loader.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def4]
libosinfo-1.11.0-build/libosinfo-1.11.0/osinfo/osinfo_loader.c:753:48: warning[core.NullDereference]: Array access (from variable 'nodes') results in a null pointer dereference
#  751|           osinfo_entity_add_param(OSINFO_ENTITY(product),
#  752|                                   OSINFO_PRODUCT_PROP_SHORT_ID,
#  753|->                                 (const gchar *)nodes[i]->children->content);
#  754|       g_free(nodes);
#  755|   

Error: CLANG_WARNING: [#def5]
libosinfo-1.11.0-build/libosinfo-1.11.0/osinfo/osinfo_loader.c:1099:5: warning[unix.Malloc]: Attempt to free released memory
# 1097|    error:
# 1098|       g_free(nodes);
# 1099|->     g_free(value);
# 1100|       g_object_unref(installScript);
# 1101|   }

Error: CLANG_WARNING: [#def6]
libosinfo-1.11.0-build/libosinfo-1.11.0/osinfo/osinfo_loader.c:1671:22: warning[core.NullDereference]: Array access (from variable 'nodes') results in a null pointer dereference
# 1669|           xmlNodePtr saved = ctxt->node;
# 1670|   
# 1671|->         ctxt->node = nodes[i];
# 1672|           firmware_id = osinfo_build_internal_id(relpath, id, i);
# 1673|           firmware = osinfo_loader_firmware(loader, ctxt, nodes[i], firmware_id, err);

Error: CLANG_WARNING: [#def7]
libosinfo-1.11.0-build/libosinfo-1.11.0/osinfo/osinfo_loader.c:1693:22: warning[core.NullDereference]: Array access (from variable 'nodes') results in a null pointer dereference
# 1691|           xmlNodePtr saved = ctxt->node;
# 1692|   
# 1693|->         ctxt->node = nodes[i];
# 1694|           media_id = osinfo_build_internal_id(relpath, id, i);
# 1695|           media = osinfo_loader_media(loader, ctxt, nodes[i], media_id, err);

Error: CLANG_WARNING: [#def8]
libosinfo-1.11.0-build/libosinfo-1.11.0/osinfo/osinfo_loader.c:1715:22: warning[core.NullDereference]: Array access (from variable 'nodes') results in a null pointer dereference
# 1713|           xmlNodePtr saved = ctxt->node;
# 1714|   
# 1715|->         ctxt->node = nodes[i];
# 1716|           tree_id = osinfo_build_internal_id(relpath, id, i);
# 1717|           tree = osinfo_loader_tree(loader, ctxt, nodes[i], tree_id, err);

Error: CLANG_WARNING: [#def9]
libosinfo-1.11.0-build/libosinfo-1.11.0/osinfo/osinfo_loader.c:1737:22: warning[core.NullDereference]: Array access (from variable 'nodes') results in a null pointer dereference
# 1735|           xmlNodePtr saved = ctxt->node;
# 1736|   
# 1737|->         ctxt->node = nodes[i];
# 1738|           image_id = osinfo_build_internal_id(relpath, id, i);
# 1739|           image = osinfo_loader_image(loader, ctxt, nodes[i], image_id, err);

Error: CLANG_WARNING: [#def10]
libosinfo-1.11.0-build/libosinfo-1.11.0/osinfo/osinfo_loader.c:1757:22: warning[core.NullDereference]: Array access (from variable 'nodes') results in a null pointer dereference
# 1755|           OsinfoOsVariant *variant;
# 1756|           xmlNodePtr saved = ctxt->node;
# 1757|->         ctxt->node = nodes[i];
# 1758|           variant = osinfo_loader_os_variant(loader,
# 1759|                                              ctxt,

Error: CLANG_WARNING: [#def11]
libosinfo-1.11.0-build/libosinfo-1.11.0/osinfo/osinfo_loader.c:1778:22: warning[core.NullDereference]: Array access (from variable 'nodes') results in a null pointer dereference
# 1776|           gchar *resources_id;
# 1777|           xmlNodePtr saved = ctxt->node;
# 1778|->         ctxt->node = nodes[i];
# 1779|           resources_id = osinfo_build_internal_id(relpath, id, i);
# 1780|   

Error: CLANG_WARNING: [#def12]
libosinfo-1.11.0-build/libosinfo-1.11.0/osinfo/osinfo_loader.c:1799:47: warning[core.NullDereference]: Array access (from variable 'nodes') results in a null pointer dereference
# 1797|       for (i = 0; i < nnodes; i++) {
# 1798|           OsinfoInstallScript *script;
# 1799|->         gchar *scriptid = (gchar *)xmlGetProp(nodes[i], BAD_CAST "id");
# 1800|           if (!scriptid) {
# 1801|               OSINFO_LOADER_SET_ERROR(err, _("Missing OS install script property"));

Error: CLANG_WARNING: [#def13]
libosinfo-1.11.0-build/libosinfo-1.11.0/osinfo/osinfo_loader.c:1820:22: warning[core.NullDereference]: Array access (from variable 'nodes') results in a null pointer dereference
# 1818|           xmlNodePtr saved = ctxt->node;
# 1819|   
# 1820|->         ctxt->node = nodes[i];
# 1821|           driver_id = osinfo_build_internal_id(relpath, id, i);
# 1822|           driver= osinfo_loader_driver(loader,

Error: CPPCHECK_WARNING: [#def14]
libosinfo-1.11.0-build/libosinfo-1.11.0/osinfo/osinfo_os.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def15]
libosinfo-1.11.0-build/libosinfo-1.11.0/osinfo/osinfo_tree.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def16]
libosinfo-1.11.0-build/libosinfo-1.11.0/redhat-linux-build/Libosinfo-scan.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def17]
libosinfo-1.11.0-build/libosinfo-1.11.0/redhat-linux-build/Libosinfo-scan.c:202:16: warning[deadcode.DeadStores]: Although the value stored to 'event_num' is used in the enclosing expression, the value is never actually read from 'event_num'

Error: CPPCHECK_WARNING: [#def18]
libosinfo-1.11.0-build/libosinfo-1.11.0/redhat-linux-build/tmp-introspectxd9bpk6f/Libosinfo-1.0.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def19]
libosinfo-1.11.0-build/libosinfo-1.11.0/redhat-linux-build/tmp-introspectxd9bpk6f/Libosinfo-1.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: [#def20]
libosinfo-1.11.0-build/libosinfo-1.11.0/tests/test-db.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def21]
libosinfo-1.11.0-build/libosinfo-1.11.0/tests/test-devicelinklist.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def22]
libosinfo-1.11.0-build/libosinfo-1.11.0/tests/test-entity.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def23]
libosinfo-1.11.0-build/libosinfo-1.11.0/tests/test-filter.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def24]
libosinfo-1.11.0-build/libosinfo-1.11.0/tests/test-image.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def25]
libosinfo-1.11.0-build/libosinfo-1.11.0/tests/test-install-script.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def26]
libosinfo-1.11.0-build/libosinfo-1.11.0/tests/test-list.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def27]
libosinfo-1.11.0-build/libosinfo-1.11.0/tests/test-media.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def28]
libosinfo-1.11.0-build/libosinfo-1.11.0/tests/test-os.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def29]
libosinfo-1.11.0-build/libosinfo-1.11.0/tests/test-os.c:240:9: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
#  238|       for (int i = 0; i < osinfo_list_get_length(OSINFO_LIST(ddlist)); i++) {
#  239|           OsinfoDeviceDriver *dd = OSINFO_DEVICE_DRIVER(osinfo_list_get_nth(OSINFO_LIST(ddlist), i));
#  240|->         g_assert_cmpint(osinfo_device_driver_get_priority(dd), ==, expected_priorities[i]);
#  241|       }
#  242|   

Error: CLANG_WARNING: [#def30]
libosinfo-1.11.0-build/libosinfo-1.11.0/tests/test-os.c:700:9: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
#  698|       shortid_list = osinfo_product_get_short_id_list(OSINFO_PRODUCT(os));
#  699|       for (l = shortid_list, i = 0; l != NULL; l = l->next, i++) {
#  700|->         g_assert_cmpstr(l->data, ==, expected_short_id_list[i]);
#  701|       }
#  702|       g_list_free(shortid_list);

Error: CPPCHECK_WARNING: [#def31]
libosinfo-1.11.0-build/libosinfo-1.11.0/tests/test-platform.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def32]
libosinfo-1.11.0-build/libosinfo-1.11.0/tests/test-tree.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def33]
libosinfo-1.11.0-build/libosinfo-1.11.0/tools/osinfo-detect.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def34]
libosinfo-1.11.0-build/libosinfo-1.11.0/tools/osinfo-query.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-66.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namelibosinfo-1.11.0-6.fc41
store-results-to/tmp/tmplwkh1xs7/libosinfo-1.11.0-6.fc41.tar.xz
time-created2024-07-03 15:52:24
time-finished2024-07-03 15:54:25
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmplwkh1xs7/libosinfo-1.11.0-6.fc41.tar.xz' '--gcc-analyze' '/tmp/tmplwkh1xs7/libosinfo-1.11.0-6.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9