dnf5-5.1.15-1.fc40
List of Defects
Error: CPPCHECK_WARNING: [#def1]
dnf5-5.1.15-build/dnf5-5.1.15/common/utils/string.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def2]
dnf5-5.1.15-build/dnf5-5.1.15/dnf5-plugins/automatic_plugin/automatic.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def3]
dnf5-5.1.15-build/dnf5-5.1.15/dnf5-plugins/automatic_plugin/emitters.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def4]
dnf5-5.1.15-build/dnf5-5.1.15/dnf5-plugins/builddep_plugin/builddep.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def5]
dnf5-5.1.15-build/dnf5-5.1.15/dnf5-plugins/config-manager_plugin/addrepo.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def6]
dnf5-5.1.15-build/dnf5-5.1.15/dnf5-plugins/config-manager_plugin/setopt.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def7]
dnf5-5.1.15-build/dnf5-5.1.15/dnf5-plugins/config-manager_plugin/setvar.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def8]
dnf5-5.1.15-build/dnf5-5.1.15/dnf5-plugins/config-manager_plugin/unsetopt.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def9]
dnf5-5.1.15-build/dnf5-5.1.15/dnf5-plugins/copr_plugin/copr_repo.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-664): [#def10]
dnf5-5.1.15-build/dnf5-5.1.15/dnf5-plugins/needs_restarting_plugin/needs_restarting.cpp:175: error[invalidContainerReference]: Reference to stack that may be invalid.
# 173|
# 174| libdnf5::rpm::PackageQuery query{installed};
# 175|-> query.filter_provides(current.get_requires());
# 176|
# 177| for (const auto & dependency : query) {
Error: CPPCHECK_WARNING: [#def11]
dnf5-5.1.15-build/dnf5-5.1.15/dnf5-plugins/repoclosure_plugin/repoclosure.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def12]
dnf5-5.1.15-build/dnf5-5.1.15/dnf5/cmdline_aliases.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def13]
dnf5-5.1.15-build/dnf5-5.1.15/dnf5/commands/advisory/advisory.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def14]
dnf5-5.1.15-build/dnf5-5.1.15/dnf5/commands/advisory/advisory_info.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def15]
dnf5-5.1.15-build/dnf5-5.1.15/dnf5/commands/advisory/advisory_list.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def16]
dnf5-5.1.15-build/dnf5-5.1.15/dnf5/commands/advisory/advisory_subcommand.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def17]
dnf5-5.1.15-build/dnf5-5.1.15/dnf5/commands/advisory/advisory_summary.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def18]
dnf5-5.1.15-build/dnf5-5.1.15/dnf5/commands/check-upgrade/check-upgrade.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def19]
dnf5-5.1.15-build/dnf5-5.1.15/dnf5/commands/download/download.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-825): [#def20]
dnf5-5.1.15-build/dnf5-5.1.15/dnf5/commands/history/transaction_id.cpp:96: error[derefInvalidIterator]: Dereference of an invalid iterator: trans_id_cache.end()
# 94| if (id_range.first < 0) {
# 95| if (static_cast<uint64_t>(std::abs(id_range.first)) <= trans_id_cache.size()) {
# 96|-> id_range.first = trans_id_cache.end()[static_cast<trans_id_cache_it_type>(id_range.first)];
# 97| } else {
# 98| // X in last-X goes out of range; we start with ID 0 if
Error: CPPCHECK_WARNING (CWE-825): [#def21]
dnf5-5.1.15-build/dnf5-5.1.15/dnf5/commands/history/transaction_id.cpp:107: error[derefInvalidIterator]: Dereference of an invalid iterator: trans_id_cache.end()
# 105| if (id_range.second < 0) {
# 106| if (static_cast<uint64_t>(std::abs(id_range.second)) <= trans_id_cache.size()) {
# 107|-> id_range.second = trans_id_cache.end()[static_cast<trans_id_cache_it_type>(id_range.second)];
# 108| } else {
# 109| // X in last-X goes out of range for a range upper
Error: CPPCHECK_WARNING: [#def22]
dnf5-5.1.15-build/dnf5-5.1.15/dnf5/commands/install/install.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def23]
dnf5-5.1.15-build/dnf5-5.1.15/dnf5/commands/list/list.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def24]
dnf5-5.1.15-build/dnf5-5.1.15/dnf5/commands/provides/provides.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def25]
dnf5-5.1.15-build/dnf5-5.1.15/dnf5/commands/repo/repo_info.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def26]
dnf5-5.1.15-build/dnf5-5.1.15/dnf5/commands/repoquery/repoquery.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def27]
dnf5-5.1.15-build/dnf5-5.1.15/dnf5/commands/upgrade/upgrade.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def28]
dnf5-5.1.15-build/dnf5-5.1.15/dnf5/commands/versionlock/versionlock_add.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def29]
dnf5-5.1.15-build/dnf5-5.1.15/dnf5/commands/versionlock/versionlock_exclude.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def30]
dnf5-5.1.15-build/dnf5-5.1.15/dnf5/context.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def31]
dnf5-5.1.15-build/dnf5-5.1.15/dnf5/main.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def32]
dnf5-5.1.15-build/dnf5-5.1.15/dnf5daemon-client/commands/advisory/advisory_subcommand.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def33]
dnf5-5.1.15-build/dnf5-5.1.15/dnf5daemon-client/commands/repolist/repolist.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING: [#def34]
dnf5-5.1.15-build/dnf5-5.1.15/dnf5daemon-server/group.hpp:31:12: warning[-Wodr]: type ‘GroupAttribute’ violates the C++ One Definition Rule
# 31 | enum class GroupAttribute {
# | ^
dnf5-5.1.15-build/dnf5-5.1.15/dnf5daemon-server/services/comps/group.cpp:31:12: note: an enum with different number of values is defined in another translation unit
# 31 | enum class GroupAttribute {
# | ^
# 29|
# 30| // group attributes available to be retrieved
# 31|-> enum class GroupAttribute {
# 32| groupid,
# 33| name,
Error: CPPCHECK_WARNING: [#def35]
dnf5-5.1.15-build/dnf5-5.1.15/dnf5daemon-server/services/advisory/advisory.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def36]
dnf5-5.1.15-build/dnf5-5.1.15/dnf5daemon-server/services/goal/goal.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def37]
dnf5-5.1.15-build/dnf5-5.1.15/dnf5daemon-server/services/repo/repo.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def38]
dnf5-5.1.15-build/dnf5-5.1.15/dnf5daemon-server/services/rpm/rpm.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def39]
dnf5-5.1.15-build/dnf5-5.1.15/dnf5daemon-server/session.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def40]
dnf5-5.1.15-build/dnf5-5.1.15/dnf5daemon-server/transaction.cpp:31: error[missingReturn]: Found an exit path from function with non-void return type that has missing return statement
# 29|
# 30| RpmTransactionItemActions transaction_package_to_action(const libdnf5::base::TransactionPackage & tspkg) {
# 31|-> switch (tspkg.get_action()) {
# 32| case libdnf5::base::TransactionPackage::Action::INSTALL:
# 33| return RpmTransactionItemActions::INSTALL;
Error: CPPCHECK_WARNING (CWE-758): [#def41]
dnf5-5.1.15-build/dnf5-5.1.15/include/libdnf5-cli/output/transaction_table.hpp:47: error[missingReturn]: Found an exit path from function with non-void return type that has missing return statement
# 45|
# 46| static const char * action_color(libdnf5::transaction::TransactionItemAction action) {
# 47|-> switch (action) {
# 48| case libdnf5::transaction::TransactionItemAction::INSTALL:
# 49| case libdnf5::transaction::TransactionItemAction::UPGRADE:
Error: CPPCHECK_WARNING: [#def42]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5-cli/argument_parser.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-562): [#def43]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5-cli/argument_parser.cpp:929: error[returnDanglingLifetime]: Returning pointer to local variable 'arg' that will be invalid when returning.
# 927| auto * ptr = arg.get();
# 928| cmds.push_back(std::move(arg));
# 929|-> return ptr;
# 930| }
# 931|
Error: CPPCHECK_WARNING (CWE-562): [#def44]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5-cli/argument_parser.cpp:937: error[returnDanglingLifetime]: Returning pointer to local variable 'arg' that will be invalid when returning.
# 935| auto * ptr = arg.get();
# 936| cmds.push_back(std::move(arg));
# 937|-> return ptr;
# 938| }
# 939|
Error: CPPCHECK_WARNING (CWE-562): [#def45]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5-cli/argument_parser.cpp:944: error[returnDanglingLifetime]: Returning pointer to local variable 'arg' that will be invalid when returning.
# 942| auto * ptr = arg.get();
# 943| named_args.push_back(std::move(arg));
# 944|-> return ptr;
# 945| }
# 946|
Error: CPPCHECK_WARNING (CWE-562): [#def46]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5-cli/argument_parser.cpp:952: error[returnDanglingLifetime]: Returning pointer to local variable 'arg' that will be invalid when returning.
# 950| auto * ptr = arg.get();
# 951| pos_args.push_back(std::move(arg));
# 952|-> return ptr;
# 953| }
# 954|
Error: CPPCHECK_WARNING (CWE-562): [#def47]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5-cli/argument_parser.cpp:963: error[returnDanglingLifetime]: Returning pointer to local variable 'arg' that will be invalid when returning.
# 961| auto * ptr = arg.get();
# 962| pos_args.push_back(std::move(arg));
# 963|-> return ptr;
# 964| }
# 965|
Error: CPPCHECK_WARNING (CWE-562): [#def48]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5-cli/argument_parser.cpp:970: error[returnDanglingLifetime]: Returning pointer to local variable 'group' that will be invalid when returning.
# 968| auto * ptr = group.get();
# 969| groups.push_back(std::move(group));
# 970|-> return ptr;
# 971| }
# 972|
Error: CPPCHECK_WARNING (CWE-562): [#def49]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5-cli/argument_parser.cpp:991: error[returnDanglingLifetime]: Returning pointer to local variable 'tmp' that will be invalid when returning.
# 989| auto * ptr = tmp.get();
# 990| values.push_back(std::move(tmp));
# 991|-> return ptr;
# 992| }
# 993|
Error: CPPCHECK_WARNING (CWE-758): [#def50]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5-cli/argument_parser.cpp:1046: error[missingReturn]: Found an exit path from function with non-void return type that has missing return statement
# 1044| if constexpr (std::is_same<Arg, ArgumentParser::PositionalArg>::value) {
# 1045| return command.get_positional_args();
# 1046|-> }
# 1047| }
# 1048|
Error: CPPCHECK_WARNING: [#def51]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5-cli/output/repoqueryformat.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def52]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5-cli/progressbar/download_progress_bar.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def53]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5-cli/progressbar/multi_progress_bar.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def54]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5-cli/progressbar/progress_bar.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def55]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5-cli/utils/utf8.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def56]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5-plugins/actions/actions.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def57]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5/advisory/advisory_query.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def58]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5/base/goal.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def59]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5/base/solver_problems.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def60]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5/base/transaction.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def61]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5/comps/environment/environment.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def62]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5/comps/environment/environment.cpp:241:9: warning[deadcode.DeadStores]: Value stored to 'node' is never read
# 239| for (const auto & group : get_groups()) {
# 240| // Create an XML node for this package
# 241|-> node = utils::xml::add_subnode_with_text(node_grouplist, "groupid", group);
# 242| }
# 243| xmlNodePtr node_optionlist = xmlNewNode(NULL, BAD_CAST "optionlist");
Error: CLANG_WARNING: [#def63]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5/comps/environment/environment.cpp:247:9: warning[deadcode.DeadStores]: Value stored to 'node' is never read
# 245| for (const auto & group : get_optional_groups()) {
# 246| // Create an XML node for this package
# 247|-> node = utils::xml::add_subnode_with_text(node_optionlist, "groupid", group);
# 248| }
# 249|
Error: CPPCHECK_WARNING: [#def64]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5/comps/environment/query.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def65]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5/comps/group/group.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def66]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5/comps/group/query.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def67]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5/conf/config_parser.cpp:97:9: warning[cplusplus.Move]: Moved-from object 'raw_item' of type 'std::basic_string' is moved
# 95| }
# 96| if (!raw_line.empty()) {
# 97|-> raw_items[section] = std::move(raw_line);
# 98| }
# 99| data[std::move(section)] = {};
Error: CLANG_WARNING: [#def68]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5/conf/config_parser.cpp:164:5: warning[cplusplus.Move]: Moved-from object 'value' of type 'std::basic_string' is moved
# 162| raw_items[section + ']' + key] = std::move(raw_item);
# 163| }
# 164|-> section_iter->second[std::move(key)] = std::move(value);
# 165| }
# 166|
Error: CPPCHECK_WARNING: [#def69]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5/conf/vars.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-562): [#def70]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5/conf/vars.cpp:307: error[invalidLifetime]: Using pointer to local variable 'empty' that is out of scope.
# 305|
# 306| // If there is no substitution to make, move past the variable expression and continue.
# 307|-> if (subst_str == nullptr) {
# 308| total_scanned += pos_after_variable_expression - pos;
# 309| pos = pos_after_variable_expression;
Error: CPPCHECK_WARNING: [#def71]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5/logger/rotating_file_logger.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def72]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5/module/module_item.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def73]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5/module/module_sack.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def74]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5/repo/librepo.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def75]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5/repo/package_downloader.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def76]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5/repo/repo.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def77]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5/repo/repo_downloader.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def78]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5/repo/repo_pgp.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def79]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5/repo/repo_sack.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-562): [#def80]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5/repo/repo_sack.cpp:102: error[danglingLifetime]: Non-local variable 'cmdline_repo' will use pointer to local variable 'repo'.
# 100| std::unique_ptr<Repo> repo(new Repo(base, CMDLINE_REPO_NAME, Repo::Type::COMMANDLINE));
# 101| repo->get_config().get_build_cache_option().set(libdnf5::Option::Priority::RUNTIME, false);
# 102|-> cmdline_repo = repo.get();
# 103| add_item(std::move(repo));
# 104| }
Error: CPPCHECK_WARNING (CWE-562): [#def81]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5/repo/repo_sack.cpp:203: error[danglingLifetime]: Non-local variable 'system_repo' will use pointer to local variable 'repo'.
# 201| // TODO(mblaha): re-enable caching once we can reliably detect whether system repo is up-to-date
# 202| repo->get_config().get_build_cache_option().set(libdnf5::Option::Priority::RUNTIME, false);
# 203|-> system_repo = repo.get();
# 204| add_item(std::move(repo));
# 205| }
Error: CPPCHECK_WARNING (CWE-480): [#def82]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5/repo/repo_sack.cpp:293: error[rethrowNoCurrentException]: Rethrowing current exception with 'throw;', it seems there is no current exception to rethrow. If there is no current exception this calls std::terminate(). More: https://isocpp.org/wiki/faq/exceptions#throw-without-an-object
# 291| except_in_main_thread = true;
# 292| finish_sack_loader();
# 293|-> throw;
# 294| }
# 295| base->get_logger()->warning(
Error: CPPCHECK_WARNING: [#def83]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5/repo/solv_repo.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def84]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5/repo/solv_repo.cpp:171: error[missingReturn]: Found an exit path from function with non-void return type that has missing return statement
# 169|
# 170| static const char * repodata_type_to_name(RepodataType type) {
# 171|-> switch (type) {
# 172| case RepodataType::FILELISTS:
# 173| return RepoDownloader::MD_FILENAME_FILELISTS;
Error: CPPCHECK_WARNING (CWE-758): [#def85]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5/repo/solv_repo.cpp:189: error[missingReturn]: Found an exit path from function with non-void return type that has missing return statement
# 187|
# 188| static int repodata_type_to_flags(RepodataType type) {
# 189|-> switch (type) {
# 190| case RepodataType::FILELISTS:
# 191| return REPO_EXTEND_SOLVABLES | REPO_LOCALPOOL;
Error: CPPCHECK_WARNING: [#def86]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5/rpm/nevra.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def87]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5/rpm/package.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def88]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5/rpm/package_query.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def89]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5/rpm/package_sack.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def90]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5/rpm/rpm_signature.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def91]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5/rpm/solv/goal_private.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def92]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5/solv/pool.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def93]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5/solv/reldep_parser.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-909): [#def94]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5/system/state.cpp:113: error[uninitStructMember]: Uninitialized struct member: group_state.package_types
# 111| }
# 112|
# 113|-> return group_state;
# 114| }
# 115| };
Error: CPPCHECK_WARNING (CWE-457): [#def95]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5/system/state.cpp:113: warning[uninitvar]: Uninitialized variable: group_state.package_types
# 111| }
# 112|
# 113|-> return group_state;
# 114| }
# 115| };
Error: CPPCHECK_WARNING: [#def96]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5/transaction/transaction_sr.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def97]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5/utils/dnf4convert/dnf4convert.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def98]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5/utils/fs/file.cpp:248: error[legacyUninitvar]: Uninitialized variable: length_to_end
# 246| if (length_detected) {
# 247| // The file length is known. Allocate memory at once and read data.
# 248|-> std::size_t to_read = count == 0 ? length_to_end : std::min(length_to_end, count);
# 249| res.resize(to_read);
# 250| std::size_t size = read(res.data(), to_read);
Error: CPPCHECK_WARNING: [#def99]
dnf5-5.1.15-build/dnf5-5.1.15/libdnf5/utils/iniparser.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def100]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/perl5/libdnf5/CMakeFiles/perl5_advisory.dir/advisoryPERL_wrap.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def101]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/perl5/libdnf5/CMakeFiles/perl5_common.dir/commonPERL_wrap.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def102]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/perl5/libdnf5/CMakeFiles/perl5_logger.dir/loggerPERL_wrap.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def103]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/perl5/libdnf5/CMakeFiles/perl5_plugin.dir/pluginPERL_wrap.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-398): [#def104]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/perl5/libdnf5/CMakeFiles/perl5_plugin.dir/pluginPERL_wrap.cxx:2343: error[throwInNoexceptFunction]: Exception thrown in function declared not to throw exceptions.
# 2341| FREETMPS;
# 2342| LEAVE;
# 2343|-> Swig::DirectorMethodException::raise(ERRSV);
# 2344| }
# 2345| SPAGAIN;
Error: CPPCHECK_WARNING (CWE-398): [#def105]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/perl5/libdnf5/CMakeFiles/perl5_plugin.dir/pluginPERL_wrap.cxx:2380: error[throwInNoexceptFunction]: Exception thrown in function declared not to throw exceptions.
# 2378| FREETMPS;
# 2379| LEAVE;
# 2380|-> Swig::DirectorMethodException::raise(ERRSV);
# 2381| }
# 2382| SPAGAIN;
Error: CPPCHECK_WARNING (CWE-398): [#def106]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/perl5/libdnf5/CMakeFiles/perl5_plugin.dir/pluginPERL_wrap.cxx:2419: error[throwInNoexceptFunction]: Exception thrown in function declared not to throw exceptions.
# 2417| FREETMPS;
# 2418| LEAVE;
# 2419|-> Swig::DirectorMethodException::raise(ERRSV);
# 2420| }
# 2421| SPAGAIN;
Error: CPPCHECK_WARNING (CWE-398): [#def107]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/perl5/libdnf5/CMakeFiles/perl5_plugin.dir/pluginPERL_wrap.cxx:2456: error[throwInNoexceptFunction]: Exception thrown in function declared not to throw exceptions.
# 2454| FREETMPS;
# 2455| LEAVE;
# 2456|-> Swig::DirectorMethodException::raise(ERRSV);
# 2457| }
# 2458| SPAGAIN;
Error: CPPCHECK_WARNING (CWE-398): [#def108]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/perl5/libdnf5/CMakeFiles/perl5_plugin.dir/pluginPERL_wrap.cxx:2497: error[throwInNoexceptFunction]: Exception thrown in function declared not to throw exceptions.
# 2495| FREETMPS;
# 2496| LEAVE;
# 2497|-> Swig::DirectorMethodException::raise(ERRSV);
# 2498| }
# 2499| SPAGAIN;
Error: CPPCHECK_WARNING (CWE-398): [#def109]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/perl5/libdnf5/CMakeFiles/perl5_plugin.dir/pluginPERL_wrap.cxx:2682: error[throwInNoexceptFunction]: Exception thrown in function declared not to throw exceptions.
# 2680| FREETMPS;
# 2681| LEAVE;
# 2682|-> Swig::DirectorMethodException::raise(ERRSV);
# 2683| }
# 2684| PUTBACK;
Error: CPPCHECK_WARNING: [#def110]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/perl5/libdnf5/CMakeFiles/perl5_transaction.dir/transactionPERL_wrap.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def111]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/perl5/libdnf5_cli/CMakeFiles/perl5_progressbar.dir/progressbarPERL_wrap.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def112]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/python3/libdnf5/CMakeFiles/python3_plugin.dir/pluginPYTHON_wrap.cxx:4888:16: warning[core.CallAndMessage]: Called C++ object pointer is null
# 4886| Swig::DirectorPureVirtualException::raise("libdnf5::plugin::IPlugin::get_api_version");
# 4887| } else {
# 4888|-> result = ((libdnf5::plugin::IPlugin const *)arg1)->get_api_version();
# 4889| }
# 4890| } catch (Swig::DirectorException&) {
Error: CLANG_WARNING: [#def113]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/python3/libdnf5/CMakeFiles/python3_plugin.dir/pluginPYTHON_wrap.cxx:4924:24: warning[core.CallAndMessage]: Called C++ object pointer is null
# 4922| Swig::DirectorPureVirtualException::raise("libdnf5::plugin::IPlugin::get_name");
# 4923| } else {
# 4924|-> result = (char *)((libdnf5::plugin::IPlugin const *)arg1)->get_name();
# 4925| }
# 4926| } catch (Swig::DirectorException&) {
Error: CLANG_WARNING: [#def114]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/python3/libdnf5/CMakeFiles/python3_plugin.dir/pluginPYTHON_wrap.cxx:4963:16: warning[core.CallAndMessage]: Called C++ object pointer is null
# 4961| Swig::DirectorPureVirtualException::raise("libdnf5::plugin::IPlugin::get_version");
# 4962| } else {
# 4963|-> result = ((libdnf5::plugin::IPlugin const *)arg1)->get_version();
# 4964| }
# 4965| } catch (Swig::DirectorException&) {
Error: CLANG_WARNING: [#def115]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/python3/libdnf5/CMakeFiles/python3_plugin.dir/pluginPYTHON_wrap.cxx:4999:25: warning[core.CallAndMessage]: Called C++ object pointer is null
# 4997| Swig::DirectorPureVirtualException::raise("libdnf5::plugin::IPlugin::get_attributes");
# 4998| } else {
# 4999|-> result = (char **)((libdnf5::plugin::IPlugin const *)arg1)->get_attributes();
# 5000| }
# 5001| } catch (Swig::DirectorException&) {
Error: CLANG_WARNING: [#def116]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/python3/libdnf5/CMakeFiles/python3_plugin.dir/pluginPYTHON_wrap.cxx:5046:24: warning[core.CallAndMessage]: Called C++ object pointer is null
# 5044| Swig::DirectorPureVirtualException::raise("libdnf5::plugin::IPlugin::get_attribute");
# 5045| } else {
# 5046|-> result = (char *)((libdnf5::plugin::IPlugin const *)arg1)->get_attribute((char const *)arg2);
# 5047| }
# 5048| } catch (Swig::DirectorException&) {
Error: CLANG_WARNING: [#def117]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/python3/libdnf5/CMakeFiles/python3_plugin.dir/pluginPYTHON_wrap.cxx:5086:7: warning[core.CallAndMessage]: Called C++ object pointer is null
# 5084| (arg1)->libdnf5::plugin::IPlugin::load_plugins();
# 5085| } else {
# 5086|-> (arg1)->load_plugins();
# 5087| }
# 5088| } catch (Swig::DirectorException&) {
Error: CLANG_WARNING: [#def118]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/python3/libdnf5/CMakeFiles/python3_plugin.dir/pluginPYTHON_wrap.cxx:5121:7: warning[core.CallAndMessage]: Called C++ object pointer is null
# 5119| (arg1)->libdnf5::plugin::IPlugin::init();
# 5120| } else {
# 5121|-> (arg1)->init();
# 5122| }
# 5123| } catch (Swig::DirectorException&) {
Error: CLANG_WARNING: [#def119]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/python3/libdnf5/CMakeFiles/python3_plugin.dir/pluginPYTHON_wrap.cxx:5156:7: warning[core.CallAndMessage]: Called C++ object pointer is null
# 5154| (arg1)->libdnf5::plugin::IPlugin::pre_base_setup();
# 5155| } else {
# 5156|-> (arg1)->pre_base_setup();
# 5157| }
# 5158| } catch (Swig::DirectorException&) {
Error: CLANG_WARNING: [#def120]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/python3/libdnf5/CMakeFiles/python3_plugin.dir/pluginPYTHON_wrap.cxx:5191:7: warning[core.CallAndMessage]: Called C++ object pointer is null
# 5189| (arg1)->libdnf5::plugin::IPlugin::post_base_setup();
# 5190| } else {
# 5191|-> (arg1)->post_base_setup();
# 5192| }
# 5193| } catch (Swig::DirectorException&) {
Error: CLANG_WARNING: [#def121]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/python3/libdnf5/CMakeFiles/python3_plugin.dir/pluginPYTHON_wrap.cxx:5236:7: warning[core.CallAndMessage]: Called C++ object pointer is null
# 5234| (arg1)->libdnf5::plugin::IPlugin::pre_transaction((libdnf5::base::Transaction const &)*arg2);
# 5235| } else {
# 5236|-> (arg1)->pre_transaction((libdnf5::base::Transaction const &)*arg2);
# 5237| }
# 5238| } catch (Swig::DirectorException&) {
Error: CLANG_WARNING: [#def122]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/python3/libdnf5/CMakeFiles/python3_plugin.dir/pluginPYTHON_wrap.cxx:5281:7: warning[core.CallAndMessage]: Called C++ object pointer is null
# 5279| (arg1)->libdnf5::plugin::IPlugin::post_transaction((libdnf5::base::Transaction const &)*arg2);
# 5280| } else {
# 5281|-> (arg1)->post_transaction((libdnf5::base::Transaction const &)*arg2);
# 5282| }
# 5283| } catch (Swig::DirectorException&) {
Error: CLANG_WARNING: [#def123]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/python3/libdnf5/CMakeFiles/python3_plugin.dir/pluginPYTHON_wrap.cxx:5316:7: warning[core.CallAndMessage]: Called C++ object pointer is null
# 5314| (arg1)->libdnf5::plugin::IPlugin::finish();
# 5315| } else {
# 5316|-> (arg1)->finish();
# 5317| }
# 5318| } catch (Swig::DirectorException&) {
Error: CPPCHECK_WARNING: [#def124]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_advisory.dir/advisoryRUBY_wrap.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def125]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_advisory.dir/advisoryRUBY_wrap.cxx:2601: error[uninitvar]: Uninitialized variable: v
# 2599| if (rb_funcall(obj, swig_lowerthan_id, 1, INT2FIX(0)) != Qfalse)
# 2600| return SWIG_OverflowError;
# 2601|-> if (val) *val = v;
# 2602| return SWIG_OK;
# 2603| }
Error: CPPCHECK_WARNING (CWE-457): [#def126]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_advisory.dir/advisoryRUBY_wrap.cxx:2649: error[uninitvar]: Uninitialized variable: v
# 2647| if (rb_funcall(obj, swig_lowerthan_id, 1, INT2FIX(0)) != Qfalse)
# 2648| return SWIG_OverflowError;
# 2649|-> if (val) *val = v;
# 2650| return SWIG_OK;
# 2651| }
Error: CPPCHECK_WARNING (CWE-457): [#def127]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_advisory.dir/advisoryRUBY_wrap.cxx:2708: error[uninitvar]: Uninitialized variable: v
# 2706| a[1] = (VALUE)(&v);
# 2707| if (rb_rescue(VALUEFUNC(SWIG_AUX_NUM2LONG), (VALUE)a, VALUEFUNC(SWIG_ruby_failed), 0) != Qnil) {
# 2708|-> if (val) *val = v;
# 2709| return SWIG_OK;
# 2710| }
Error: CPPCHECK_WARNING (CWE-457): [#def128]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_advisory.dir/advisoryRUBY_wrap.cxx:2739: error[uninitvar]: Uninitialized variable: v
# 2737| a[1] = (VALUE)(&v);
# 2738| if (rb_rescue(VALUEFUNC(SWIG_AUX_NUM2LL), (VALUE)a, VALUEFUNC(SWIG_ruby_failed), 0) != Qnil) {
# 2739|-> if (val) *val = v;
# 2740| return SWIG_OK;
# 2741| }
Error: CPPCHECK_WARNING: [#def129]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_base.dir/baseRUBY_wrap.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def130]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_common.dir/commonRUBY_wrap.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def131]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_comps.dir/compsRUBY_wrap.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def132]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_conf.dir/confRUBY_wrap.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def133]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_logger.dir/loggerRUBY_wrap.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def134]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_logger.dir/loggerRUBY_wrap.cxx:2408: error[uninitvar]: Uninitialized variable: v
# 2406| a[1] = (VALUE)(&v);
# 2407| if (rb_rescue(VALUEFUNC(SWIG_AUX_NUM2LONG), (VALUE)a, VALUEFUNC(SWIG_ruby_failed), 0) != Qnil) {
# 2408|-> if (val) *val = v;
# 2409| return SWIG_OK;
# 2410| }
Error: CPPCHECK_WARNING (CWE-457): [#def135]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_logger.dir/loggerRUBY_wrap.cxx:2598: error[uninitvar]: Uninitialized variable: v
# 2596| if (rb_funcall(obj, swig_lowerthan_id, 1, INT2FIX(0)) != Qfalse)
# 2597| return SWIG_OverflowError;
# 2598|-> if (val) *val = v;
# 2599| return SWIG_OK;
# 2600| }
Error: CPPCHECK_WARNING (CWE-457): [#def136]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_logger.dir/loggerRUBY_wrap.cxx:2631: error[uninitvar]: Uninitialized variable: v
# 2629| if (rb_funcall(obj, swig_lowerthan_id, 1, INT2FIX(0)) != Qfalse)
# 2630| return SWIG_OverflowError;
# 2631|-> if (val) *val = v;
# 2632| return SWIG_OK;
# 2633| }
Error: CPPCHECK_WARNING: [#def137]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def138]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:2701: error[uninitvar]: Uninitialized variable: v
# 2699| if (rb_funcall(obj, swig_lowerthan_id, 1, INT2FIX(0)) != Qfalse)
# 2700| return SWIG_OverflowError;
# 2701|-> if (val) *val = v;
# 2702| return SWIG_OK;
# 2703| }
Error: CPPCHECK_WARNING (CWE-398): [#def139]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:2849: error[throwInNoexceptFunction]: Exception thrown in function declared not to throw exceptions.
# 2847| swig_res = SWIG_ConvertPtr(result,&swig_argp,SWIGTYPE_p_libdnf5__PluginAPIVersion, 0 );
# 2848| if (!SWIG_IsOK(swig_res)) {
# 2849|-> Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""libdnf5::PluginAPIVersion""'");
# 2850| }
# 2851| c_result = *(reinterpret_cast< libdnf5::PluginAPIVersion * >(swig_argp));
Error: CPPCHECK_WARNING (CWE-398): [#def140]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:2866: error[throwInNoexceptFunction]: Exception thrown in function declared not to throw exceptions.
# 2864| res = SWIG_AsCharPtrAndSize(result, &buf, NULL, &alloc);
# 2865| if (!SWIG_IsOK(res)) {
# 2866|-> Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(res)), "in output value of type '""char const *""'");
# 2867| }
# 2868| if (alloc == SWIG_NEWOBJ) {
Error: CPPCHECK_WARNING (CWE-398): [#def141]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:2885: error[throwInNoexceptFunction]: Exception thrown in function declared not to throw exceptions.
# 2883| swig_res = SWIG_ConvertPtr(result,&swig_argp,SWIGTYPE_p_libdnf5__plugin__Version, 0 );
# 2884| if (!SWIG_IsOK(swig_res)) {
# 2885|-> Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""libdnf5::plugin::Version""'");
# 2886| }
# 2887| c_result = *(reinterpret_cast< libdnf5::plugin::Version * >(swig_argp));
Error: CPPCHECK_WARNING (CWE-398): [#def142]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:2902: error[throwInNoexceptFunction]: Exception thrown in function declared not to throw exceptions.
# 2900| swig_res = SWIG_ConvertPtrAndOwn(result, &swig_argp, SWIGTYPE_p_p_char, 0 | SWIG_POINTER_DISOWN, &own);
# 2901| if (!SWIG_IsOK(swig_res)) {
# 2902|-> Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""char const *const *""'");
# 2903| }
# 2904| c_result = reinterpret_cast< char ** >(swig_argp);
Error: CPPCHECK_WARNING (CWE-398): [#def143]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:2922: error[throwInNoexceptFunction]: Exception thrown in function declared not to throw exceptions.
# 2920| res = SWIG_AsCharPtrAndSize(result, &buf, NULL, &alloc);
# 2921| if (!SWIG_IsOK(res)) {
# 2922|-> Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(res)), "in output value of type '""char const *""'");
# 2923| }
# 2924| if (alloc == SWIG_NEWOBJ) {
Error: CLANG_WARNING: [#def144]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:3346:16: warning[core.CallAndMessage]: Called C++ object pointer is null
# 3344| Swig::DirectorPureVirtualException::raise("libdnf5::plugin::IPlugin::get_api_version");
# 3345| } else {
# 3346|-> result = ((libdnf5::plugin::IPlugin const *)arg1)->get_api_version();
# 3347| }
# 3348| } catch (Swig::DirectorException& e) {
Error: CLANG_WARNING: [#def145]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:3352:11: warning[cplusplus.NewDeleteLeaks]: Potential memory leak
# 3350| SWIG_fail;
# 3351| }
# 3352|-> vresult = SWIG_NewPointerObj((new libdnf5::PluginAPIVersion(result)), SWIGTYPE_p_libdnf5__PluginAPIVersion, SWIG_POINTER_OWN | 0 );
# 3353| return vresult;
# 3354| fail:
Error: CLANG_WARNING: [#def146]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:3383:24: warning[core.CallAndMessage]: Called C++ object pointer is null
# 3381| Swig::DirectorPureVirtualException::raise("libdnf5::plugin::IPlugin::get_name");
# 3382| } else {
# 3383|-> result = (char *)((libdnf5::plugin::IPlugin const *)arg1)->get_name();
# 3384| }
# 3385| } catch (Swig::DirectorException& e) {
Error: CLANG_WARNING: [#def147]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:3423:16: warning[core.CallAndMessage]: Called C++ object pointer is null
# 3421| Swig::DirectorPureVirtualException::raise("libdnf5::plugin::IPlugin::get_version");
# 3422| } else {
# 3423|-> result = ((libdnf5::plugin::IPlugin const *)arg1)->get_version();
# 3424| }
# 3425| } catch (Swig::DirectorException& e) {
Error: CLANG_WARNING: [#def148]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:3429:11: warning[cplusplus.NewDeleteLeaks]: Potential memory leak
# 3427| SWIG_fail;
# 3428| }
# 3429|-> vresult = SWIG_NewPointerObj((new libdnf5::plugin::Version(result)), SWIGTYPE_p_libdnf5__plugin__Version, SWIG_POINTER_OWN | 0 );
# 3430| return vresult;
# 3431| fail:
Error: CLANG_WARNING: [#def149]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:3460:25: warning[core.CallAndMessage]: Called C++ object pointer is null
# 3458| Swig::DirectorPureVirtualException::raise("libdnf5::plugin::IPlugin::get_attributes");
# 3459| } else {
# 3460|-> result = (char **)((libdnf5::plugin::IPlugin const *)arg1)->get_attributes();
# 3461| }
# 3462| } catch (Swig::DirectorException& e) {
Error: CLANG_WARNING: [#def150]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:3509:24: warning[core.CallAndMessage]: Called C++ object pointer is null
# 3507| Swig::DirectorPureVirtualException::raise("libdnf5::plugin::IPlugin::get_attribute");
# 3508| } else {
# 3509|-> result = (char *)((libdnf5::plugin::IPlugin const *)arg1)->get_attribute((char const *)arg2);
# 3510| }
# 3511| } catch (Swig::DirectorException& e) {
Error: CLANG_WARNING: [#def151]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:3549:7: warning[core.CallAndMessage]: Called C++ object pointer is null
# 3547| (arg1)->libdnf5::plugin::IPlugin::load_plugins();
# 3548| } else {
# 3549|-> (arg1)->load_plugins();
# 3550| }
# 3551| } catch (Swig::DirectorException& e) {
Error: CLANG_WARNING: [#def152]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:3583:7: warning[core.CallAndMessage]: Called C++ object pointer is null
# 3581| (arg1)->libdnf5::plugin::IPlugin::init();
# 3582| } else {
# 3583|-> (arg1)->init();
# 3584| }
# 3585| } catch (Swig::DirectorException& e) {
Error: CLANG_WARNING: [#def153]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:3617:7: warning[core.CallAndMessage]: Called C++ object pointer is null
# 3615| (arg1)->libdnf5::plugin::IPlugin::pre_base_setup();
# 3616| } else {
# 3617|-> (arg1)->pre_base_setup();
# 3618| }
# 3619| } catch (Swig::DirectorException& e) {
Error: CLANG_WARNING: [#def154]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:3651:7: warning[core.CallAndMessage]: Called C++ object pointer is null
# 3649| (arg1)->libdnf5::plugin::IPlugin::post_base_setup();
# 3650| } else {
# 3651|-> (arg1)->post_base_setup();
# 3652| }
# 3653| } catch (Swig::DirectorException& e) {
Error: CLANG_WARNING: [#def155]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:3775:7: warning[core.CallAndMessage]: Called C++ object pointer is null
# 3773| (arg1)->libdnf5::plugin::IPlugin::finish();
# 3774| } else {
# 3775|-> (arg1)->finish();
# 3776| }
# 3777| } catch (Swig::DirectorException& e) {
Error: CLANG_WARNING: [#def156]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:3803:31: warning[core.CallAndMessage]: Called C++ object pointer is null
# 3801| }
# 3802| arg1 = reinterpret_cast< libdnf5::plugin::IPlugin * >(argp1);
# 3803|-> result = (libdnf5::Base *) &(arg1)->get_base();
# 3804| vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_libdnf5__Base, 0 | 0 );
# 3805| return vresult;
Error: CPPCHECK_WARNING: [#def157]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_repo.dir/repoRUBY_wrap.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def158]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_transaction.dir/transactionRUBY_wrap.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def159]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_transaction.dir/transactionRUBY_wrap.cxx:2606: error[uninitvar]: Uninitialized variable: v
# 2604| if (rb_funcall(obj, swig_lowerthan_id, 1, INT2FIX(0)) != Qfalse)
# 2605| return SWIG_OverflowError;
# 2606|-> if (val) *val = v;
# 2607| return SWIG_OK;
# 2608| }
Error: CPPCHECK_WARNING (CWE-457): [#def160]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_transaction.dir/transactionRUBY_wrap.cxx:2654: error[uninitvar]: Uninitialized variable: v
# 2652| if (rb_funcall(obj, swig_lowerthan_id, 1, INT2FIX(0)) != Qfalse)
# 2653| return SWIG_OverflowError;
# 2654|-> if (val) *val = v;
# 2655| return SWIG_OK;
# 2656| }
Error: CPPCHECK_WARNING (CWE-457): [#def161]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_transaction.dir/transactionRUBY_wrap.cxx:2713: error[uninitvar]: Uninitialized variable: v
# 2711| a[1] = (VALUE)(&v);
# 2712| if (rb_rescue(VALUEFUNC(SWIG_AUX_NUM2LONG), (VALUE)a, VALUEFUNC(SWIG_ruby_failed), 0) != Qnil) {
# 2713|-> if (val) *val = v;
# 2714| return SWIG_OK;
# 2715| }
Error: CPPCHECK_WARNING (CWE-457): [#def162]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_transaction.dir/transactionRUBY_wrap.cxx:2744: error[uninitvar]: Uninitialized variable: v
# 2742| a[1] = (VALUE)(&v);
# 2743| if (rb_rescue(VALUEFUNC(SWIG_AUX_NUM2LL), (VALUE)a, VALUEFUNC(SWIG_ruby_failed), 0) != Qnil) {
# 2744|-> if (val) *val = v;
# 2745| return SWIG_OK;
# 2746| }
Error: CPPCHECK_WARNING: [#def163]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/ruby/libdnf5_cli/CMakeFiles/ruby_progressbar.dir/progressbarRUBY_wrap.cxx: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def164]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/ruby/libdnf5_cli/CMakeFiles/ruby_progressbar.dir/progressbarRUBY_wrap.cxx:2053: error[uninitvar]: Uninitialized variable: v
# 2051| a[1] = (VALUE)(&v);
# 2052| if (rb_rescue(VALUEFUNC(SWIG_AUX_NUM2LONG), (VALUE)a, VALUEFUNC(SWIG_ruby_failed), 0) != Qnil) {
# 2053|-> if (val) *val = v;
# 2054| return SWIG_OK;
# 2055| }
Error: CPPCHECK_WARNING (CWE-457): [#def165]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/ruby/libdnf5_cli/CMakeFiles/ruby_progressbar.dir/progressbarRUBY_wrap.cxx:2270: error[uninitvar]: Uninitialized variable: v
# 2268| if (rb_funcall(obj, swig_lowerthan_id, 1, INT2FIX(0)) != Qfalse)
# 2269| return SWIG_OverflowError;
# 2270|-> if (val) *val = v;
# 2271| return SWIG_OK;
# 2272| }
Error: CPPCHECK_WARNING (CWE-457): [#def166]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/ruby/libdnf5_cli/CMakeFiles/ruby_progressbar.dir/progressbarRUBY_wrap.cxx:2303: error[uninitvar]: Uninitialized variable: v
# 2301| if (rb_funcall(obj, swig_lowerthan_id, 1, INT2FIX(0)) != Qfalse)
# 2302| return SWIG_OverflowError;
# 2303|-> if (val) *val = v;
# 2304| return SWIG_OK;
# 2305| }
Error: CLANG_WARNING: [#def167]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/ruby/libdnf5_cli/CMakeFiles/ruby_progressbar.dir/progressbarRUBY_wrap.cxx:3630:3: warning[core.CallAndMessage]: Called C++ object pointer is null
# 3628| }
# 3629| arg2 = static_cast< bool >(val2);
# 3630|-> (arg1)->set_total_bar_number_widget_visible(arg2);
# 3631| return Qnil;
# 3632| fail:
Error: CLANG_WARNING: [#def168]
dnf5-5.1.15-build/dnf5-5.1.15/redhat-linux-build/bindings/ruby/libdnf5_cli/CMakeFiles/ruby_progressbar.dir/progressbarRUBY_wrap.cxx:3682:12: warning[core.CallAndMessage]: Called C++ object pointer is null
# 3680| }
# 3681| arg1 = reinterpret_cast< libdnf5::cli::progressbar::MultiProgressBar * >(argp1);
# 3682|-> result = ((libdnf5::cli::progressbar::MultiProgressBar const *)arg1)->get_total_num_of_bars();
# 3683| vresult = SWIG_From_size_t(static_cast< size_t >(result));
# 3684| return vresult;
Error: CPPCHECK_WARNING (CWE-416): [#def169]
dnf5-5.1.15-build/dnf5-5.1.15/test/libdnf5-cli/output/test_repoquery.cpp:59: error[deallocuse]: Dereferencing 'stream' after it is deallocated / released
# 57| stream = open_memstream(&buf, &len);
# 58| libdnf5::cli::output::print_pkg_set_with_format(stream, *pkgs, "%{name}\n");
# 59|-> CPPUNIT_ASSERT_EQUAL(fclose(stream), 0);
# 60| CPPUNIT_ASSERT_EQUAL(std::string("pkg\npkg-libs\nunresolvable\n"), std::string(buf));
# 61| free(buf);
Error: CPPCHECK_WARNING (CWE-416): [#def170]
dnf5-5.1.15-build/dnf5-5.1.15/test/libdnf5-cli/output/test_repoquery.cpp:66: error[deallocuse]: Dereferencing 'stream' after it is deallocated / released
# 64| stream = open_memstream(&buf, &len);
# 65| libdnf5::cli::output::print_pkg_set_with_format(stream, *pkgs, "%{name}-%{name}-%{name}\n");
# 66|-> CPPUNIT_ASSERT_EQUAL(fclose(stream), 0);
# 67| CPPUNIT_ASSERT_EQUAL(
# 68| std::string("pkg-libs-pkg-libs-pkg-libs\npkg-pkg-pkg\nunresolvable-unresolvable-unresolvable\n"),
Error: CPPCHECK_WARNING (CWE-416): [#def171]
dnf5-5.1.15-build/dnf5-5.1.15/test/libdnf5-cli/output/test_repoquery.cpp:75: error[deallocuse]: Dereferencing 'stream' after it is deallocated / released
# 73| stream = open_memstream(&buf, &len);
# 74| libdnf5::cli::output::print_pkg_set_with_format(stream, *pkgs, "%{name}-%{arch}-%{installsize}\n");
# 75|-> CPPUNIT_ASSERT_EQUAL(fclose(stream), 0);
# 76| CPPUNIT_ASSERT_EQUAL(
# 77| std::string("pkg-libs-x86_64-222\npkg-x86_64-222\nunresolvable-noarch-222\n"), std::string(buf));
Error: CPPCHECK_WARNING (CWE-416): [#def172]
dnf5-5.1.15-build/dnf5-5.1.15/test/libdnf5-cli/output/test_repoquery.cpp:90: error[deallocuse]: Dereferencing 'stream' after it is deallocated / released
# 88| stream = open_memstream(&buf, &len);
# 89| libdnf5::cli::output::print_pkg_set_with_format(stream, *pkgs, "%{name\n");
# 90|-> CPPUNIT_ASSERT_EQUAL(fclose(stream), 0);
# 91| CPPUNIT_ASSERT_EQUAL(std::string("%{name\n"), std::string(buf));
# 92| free(buf);
Error: CPPCHECK_WARNING (CWE-416): [#def173]
dnf5-5.1.15-build/dnf5-5.1.15/test/libdnf5-cli/output/test_repoquery.cpp:97: error[deallocuse]: Dereferencing 'stream' after it is deallocated / released
# 95| stream = open_memstream(&buf, &len);
# 96| libdnf5::cli::output::print_pkg_set_with_format(stream, *pkgs, "%{asd}\n");
# 97|-> CPPUNIT_ASSERT_EQUAL(fclose(stream), 0);
# 98| CPPUNIT_ASSERT_EQUAL(std::string("%{asd}\n"), std::string(buf));
# 99| free(buf);
Error: CPPCHECK_WARNING (CWE-416): [#def174]
dnf5-5.1.15-build/dnf5-5.1.15/test/libdnf5-cli/output/test_repoquery.cpp:104: error[deallocuse]: Dereferencing 'stream' after it is deallocated / released
# 102| stream = open_memstream(&buf, &len);
# 103| libdnf5::cli::output::print_pkg_set_with_format(stream, *pkgs, "%%{ %% {{{%{asd}");
# 104|-> CPPUNIT_ASSERT_EQUAL(fclose(stream), 0);
# 105| CPPUNIT_ASSERT_EQUAL(std::string("%%{ %% {{{%{asd}"), std::string(buf));
# 106| free(buf);
Error: CPPCHECK_WARNING (CWE-416): [#def175]
dnf5-5.1.15-build/dnf5-5.1.15/test/libdnf5-cli/output/test_repoquery.cpp:111: error[deallocuse]: Dereferencing 'stream' after it is deallocated / released
# 109| stream = open_memstream(&buf, &len);
# 110| libdnf5::cli::output::print_pkg_set_with_format(stream, *pkgs, "%%{}{}{{%{name}}");
# 111|-> CPPUNIT_ASSERT_EQUAL(fclose(stream), 0);
# 112| CPPUNIT_ASSERT_EQUAL(std::string("%%{}{}{{pkg-libs}%%{}{}{{pkg}%%{}{}{{unresolvable}"), std::string(buf));
# 113| free(buf);
Error: CPPCHECK_WARNING (CWE-416): [#def176]
dnf5-5.1.15-build/dnf5-5.1.15/test/libdnf5-cli/output/test_repoquery.cpp:118: error[deallocuse]: Dereferencing 'stream' after it is deallocated / released
# 116| stream = open_memstream(&buf, &len);
# 117| libdnf5::cli::output::print_pkg_set_with_format(stream, *pkgs, "%{name:^30}");
# 118|-> CPPUNIT_ASSERT_EQUAL(fclose(stream), 0);
# 119| CPPUNIT_ASSERT_EQUAL(std::string("%{name:^30}"), std::string(buf));
# 120| free(buf);
Error: CPPCHECK_WARNING (CWE-416): [#def177]
dnf5-5.1.15-build/dnf5-5.1.15/test/libdnf5-cli/output/test_repoquery.cpp:132: error[deallocuse]: Dereferencing 'stream' after it is deallocated / released
# 130| stream = open_memstream(&buf, &len);
# 131| libdnf5::cli::output::print_pkg_set_with_format(stream, *pkgs, "%aa20{name}%{evr}\n");
# 132|-> CPPUNIT_ASSERT_EQUAL(fclose(stream), 0);
# 133| CPPUNIT_ASSERT_EQUAL(std::string("%aa20{name}1.2-3\n%aa20{name}1:1.3-4\n%aa20{name}1:2-3\n"), std::string(buf));
# 134| free(buf);
Error: CPPCHECK_WARNING (CWE-416): [#def178]
dnf5-5.1.15-build/dnf5-5.1.15/test/libdnf5-cli/output/test_repoquery.cpp:139: error[deallocuse]: Dereferencing 'stream' after it is deallocated / released
# 137| stream = open_memstream(&buf, &len);
# 138| libdnf5::cli::output::print_pkg_set_with_format(stream, *pkgs, "%-20{name}%{evr}\n");
# 139|-> CPPUNIT_ASSERT_EQUAL(fclose(stream), 0);
# 140| CPPUNIT_ASSERT_EQUAL(
# 141| std::string("pkg 1.2-3\npkg-libs 1:1.3-4\nunresolvable 1:2-3\n"),
Error: CPPCHECK_WARNING (CWE-416): [#def179]
dnf5-5.1.15-build/dnf5-5.1.15/test/libdnf5-cli/output/test_repoquery.cpp:154: error[deallocuse]: Dereferencing 'stream' after it is deallocated / released
# 152| stream = open_memstream(&buf, &len);
# 153| libdnf5::cli::output::print_pkg_attr_uniq_sorted(stream, *pkgs, "requires");
# 154|-> CPPUNIT_ASSERT_EQUAL(fclose(stream), 0);
# 155| CPPUNIT_ASSERT_EQUAL(std::string("prereq\nreq = 1:2-3\n"), std::string(buf));
# 156| free(buf);
Error: CPPCHECK_WARNING (CWE-416): [#def180]
dnf5-5.1.15-build/dnf5-5.1.15/test/libdnf5-cli/output/test_repoquery.cpp:161: error[deallocuse]: Dereferencing 'stream' after it is deallocated / released
# 159| stream = open_memstream(&buf, &len);
# 160| libdnf5::cli::output::print_pkg_attr_uniq_sorted(stream, *pkgs, "provides");
# 161|-> CPPUNIT_ASSERT_EQUAL(fclose(stream), 0);
# 162| CPPUNIT_ASSERT_EQUAL(
# 163| std::string("pkg = 1.2-3\npkg-libs = 1:1.3-4\nprv = 1:2-3\nunresolvable = 1:2-3\n"), std::string(buf));
Error: CPPCHECK_WARNING (CWE-416): [#def181]
dnf5-5.1.15-build/dnf5-5.1.15/test/libdnf5-cli/output/test_repoquery.cpp:169: error[deallocuse]: Dereferencing 'stream' after it is deallocated / released
# 167| stream = open_memstream(&buf, &len);
# 168| libdnf5::cli::output::print_pkg_attr_uniq_sorted(stream, *pkgs, "name");
# 169|-> CPPUNIT_ASSERT_EQUAL(fclose(stream), 0);
# 170| CPPUNIT_ASSERT_EQUAL(std::string("pkg\npkg-libs\nunresolvable\n"), std::string(buf));
# 171| free(buf);
Error: CPPCHECK_WARNING (CWE-416): [#def182]
dnf5-5.1.15-build/dnf5-5.1.15/test/libdnf5-cli/output/test_repoquery.cpp:176: error[deallocuse]: Dereferencing 'stream' after it is deallocated / released
# 174| stream = open_memstream(&buf, &len);
# 175| libdnf5::cli::output::print_pkg_attr_uniq_sorted(stream, *pkgs, "buildtime");
# 176|-> CPPUNIT_ASSERT_EQUAL(fclose(stream), 0);
# 177| CPPUNIT_ASSERT_EQUAL(std::string("456\n"), std::string(buf));
# 178| free(buf);
Error: CPPCHECK_WARNING: [#def183]
dnf5-5.1.15-build/dnf5-5.1.15/test/libdnf5/conf/test_config_parser.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def184]
dnf5-5.1.15-build/dnf5-5.1.15/test/libdnf5/impl_ptr/test_impl_ptr.cpp:177:35: warning[cplusplus.Move]: Method called on moved-from object 'src_object'
# 175| CPPUNIT_ASSERT_EQUAL(1, CTest::get_instance_counter());
# 176| CPPUNIT_ASSERT_EQUAL(10, new_object->get_a());
# 177|-> CPPUNIT_ASSERT(nullptr == src_object.get());
# 178| }
# 179|
Error: CLANG_WARNING: [#def185]
dnf5-5.1.15-build/dnf5-5.1.15/test/libdnf5/impl_ptr/test_impl_ptr.cpp:231:35: warning[cplusplus.Move]: Method called on moved-from object 'src_object'
# 229| CPPUNIT_ASSERT_EQUAL(1, CTest::get_instance_counter());
# 230| CPPUNIT_ASSERT_EQUAL(10, dst_object->get_a());
# 231|-> CPPUNIT_ASSERT(nullptr == src_object.get());
# 232|
# 233| // Tests the move assignment operator - self-assignment.
Error: CLANG_WARNING: [#def186]
dnf5-5.1.15-build/dnf5-5.1.15/test/libdnf5/impl_ptr/test_impl_ptr.cpp:247:35: warning[cplusplus.Move]: Method called on moved-from object 'dst_object'
# 245| CPPUNIT_ASSERT_EQUAL(1, CTest::get_instance_counter());
# 246| CPPUNIT_ASSERT_EQUAL(10, empty_object->get_a());
# 247|-> CPPUNIT_ASSERT(nullptr == dst_object.get());
# 248| }
# 249|
Error: CLANG_WARNING: [#def187]
dnf5-5.1.15-build/dnf5-5.1.15/test/libdnf5/solv/test_id_queue.cpp:84:20: warning[cplusplus.Move]: Method called on moved-from object 'id_queue_same1'
# 82| // test move constructor
# 83| auto move = std::move(id_queue_same1);
# 84|-> CPPUNIT_ASSERT(id_queue_same1 != move);
# 85| CPPUNIT_ASSERT(id_queue_same1.size() == 0);
# 86| CPPUNIT_ASSERT(move.size() == 2);
Error: CPPCHECK_WARNING (CWE-416): [#def188]
dnf5-5.1.15-build/dnf5-5.1.15/test/libdnf5/utils/test_fs.cpp:394: error[deallocuse]: Dereferencing 'file_p' after it is deallocated / released
# 392| CPPUNIT_ASSERT_EQUAL((size_t)10, res); // in theory, the read() could read less and this would fail
# 393| CPPUNIT_ASSERT_EQUAL(data_w, std::string(data_r, sizeof(data_r)));
# 394|-> CPPUNIT_ASSERT_EQUAL(0, std::fclose(file_p));
# 395| }
# 396|
Error: CPPCHECK_WARNING (CWE-398): [#def189]
dnf5-5.1.15-build/dnf5-5.1.15/test/shared/base_test_case.cpp:119: warning[containerOutOfBounds]: Either the condition 'found.empty()' is redundant or expression 'found.begin()' causes access out of bounds.
# 117| }
# 118|
# 119|-> return *found.begin();
# 120| }
# 121|
Error: CPPCHECK_WARNING (CWE-398): [#def190]
dnf5-5.1.15-build/dnf5-5.1.15/test/shared/base_test_case.cpp:140: warning[containerOutOfBounds]: Either the condition 'found.empty()' is redundant or expression 'found.begin()' causes access out of bounds.
# 138| }
# 139|
# 140|-> return *found.begin();
# 141| }
# 142|
Scan Properties
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-179.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | dnf5-5.1.15-1.fc40 |
store-results-to | /tmp/tmpug8n0x9m/dnf5-5.1.15-1.fc40.tar.xz |
time-created | 2024-07-03 12:21:33 |
time-finished | 2024-07-03 12:40:52 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpug8n0x9m/dnf5-5.1.15-1.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpug8n0x9m/dnf5-5.1.15-1.fc40.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |