dnf5-5.2.3.0-3.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/common/utils/string.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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.2.3.0-build/dnf5-5.2.3.0/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.2.3.0-build/dnf5-5.2.3.0/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.2.3.0-build/dnf5-5.2.3.0/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.2.3.0-build/dnf5-5.2.3.0/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.2.3.0-build/dnf5-5.2.3.0/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.2.3.0-build/dnf5-5.2.3.0/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.2.3.0-build/dnf5-5.2.3.0/dnf5-plugins/copr_plugin/copr_debug.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def10]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/dnf5-plugins/copr_plugin/copr_disable.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def11]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/dnf5-plugins/copr_plugin/copr_enable.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def12]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/dnf5-plugins/copr_plugin/copr_list.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def13]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/dnf5-plugins/copr_plugin/copr_remove.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def14]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/dnf5-plugins/copr_plugin/copr_repo.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def15]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/dnf5-plugins/repoclosure_plugin/repoclosure.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def16]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/dnf5/cmdline_aliases.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def17]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/dnf5/commands/advisory/advisory.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def18]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/dnf5/commands/advisory/advisory_info.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def19]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/dnf5/commands/advisory/advisory_list.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def20]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/dnf5/commands/advisory/advisory_subcommand.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def21]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/dnf5/commands/advisory/advisory_summary.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def22]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/dnf5/commands/check-upgrade/check-upgrade.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def23]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/dnf5/commands/download/download.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-825): [#def24]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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): [#def25]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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: [#def26]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/dnf5/commands/install/install.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def27]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/dnf5/commands/list/list.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def28]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/dnf5/commands/provides/provides.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def29]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/dnf5/commands/repoquery/repoquery.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def30]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/dnf5/commands/upgrade/upgrade.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def31]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/dnf5/commands/versionlock/versionlock_add.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def32]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/dnf5/commands/versionlock/versionlock_exclude.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def33]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/dnf5/context.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def34]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/dnf5daemon-client/commands/advisory/advisory_subcommand.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def35]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/dnf5daemon-client/commands/group/group_list.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def36]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/dnf5daemon-client/wrappers/dbus_goal_wrapper.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING: [#def37]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/dnf5daemon-server/group.hpp:31:12: warning[-Wodr]: type ‘GroupAttribute’ violates the C++ One Definition Rule
#   31 | enum class GroupAttribute {
#      |            ^
dnf5-5.2.3.0-build/dnf5-5.2.3.0/dnf5daemon-server/services/comps/group.cpp:32:12: note: an enum with different number of values is defined in another translation unit
#   32 | enum class GroupAttribute {
#      |            ^
#   29|   
#   30|   // group attributes available to be retrieved
#   31|-> enum class GroupAttribute {
#   32|       groupid,
#   33|       name,

Error: CPPCHECK_WARNING: [#def38]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/dnf5daemon-server/services/advisory/advisory.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def39]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/dnf5daemon-server/services/comps/group.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def40]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/dnf5daemon-server/services/goal/goal.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def41]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/dnf5daemon-server/services/repo/repo.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def42]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/dnf5daemon-server/services/rpm/rpm.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def43]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/dnf5daemon-server/session.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-758): [#def44]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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: [#def45]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5-cli/argument_parser.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-562): [#def46]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5-cli/argument_parser.cpp:1355: error[returnDanglingLifetime]: Returning pointer to local variable 'arg' that will be invalid when returning.
# 1353|       auto * ptr = arg.get();
# 1354|       p_impl->cmds.push_back(std::move(arg));
# 1355|->     return ptr;
# 1356|   }
# 1357|   

Error: CPPCHECK_WARNING (CWE-562): [#def47]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5-cli/argument_parser.cpp:1363: error[returnDanglingLifetime]: Returning pointer to local variable 'arg' that will be invalid when returning.
# 1361|       auto * ptr = arg.get();
# 1362|       p_impl->cmds.push_back(std::move(arg));
# 1363|->     return ptr;
# 1364|   }
# 1365|   

Error: CPPCHECK_WARNING (CWE-562): [#def48]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5-cli/argument_parser.cpp:1370: error[returnDanglingLifetime]: Returning pointer to local variable 'arg' that will be invalid when returning.
# 1368|       auto * ptr = arg.get();
# 1369|       p_impl->named_args.push_back(std::move(arg));
# 1370|->     return ptr;
# 1371|   }
# 1372|   

Error: CPPCHECK_WARNING (CWE-562): [#def49]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5-cli/argument_parser.cpp:1378: error[returnDanglingLifetime]: Returning pointer to local variable 'arg' that will be invalid when returning.
# 1376|       auto * ptr = arg.get();
# 1377|       p_impl->pos_args.push_back(std::move(arg));
# 1378|->     return ptr;
# 1379|   }
# 1380|   

Error: CPPCHECK_WARNING (CWE-562): [#def50]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5-cli/argument_parser.cpp:1389: error[returnDanglingLifetime]: Returning pointer to local variable 'arg' that will be invalid when returning.
# 1387|       auto * ptr = arg.get();
# 1388|       p_impl->pos_args.push_back(std::move(arg));
# 1389|->     return ptr;
# 1390|   }
# 1391|   

Error: CPPCHECK_WARNING (CWE-562): [#def51]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5-cli/argument_parser.cpp:1396: error[returnDanglingLifetime]: Returning pointer to local variable 'group' that will be invalid when returning.
# 1394|       auto * ptr = group.get();
# 1395|       p_impl->groups.push_back(std::move(group));
# 1396|->     return ptr;
# 1397|   }
# 1398|   

Error: CPPCHECK_WARNING (CWE-562): [#def52]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5-cli/argument_parser.cpp:1417: error[returnDanglingLifetime]: Returning pointer to local variable 'tmp' that will be invalid when returning.
# 1415|       auto * ptr = tmp.get();
# 1416|       p_impl->values.push_back(std::move(tmp));
# 1417|->     return ptr;
# 1418|   }
# 1419|   

Error: CPPCHECK_WARNING (CWE-758): [#def53]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5-cli/argument_parser.cpp:1493: error[missingReturn]: Found an exit path from function with non-void return type that has missing return statement
# 1491|       if constexpr (std::is_same<Arg, ArgumentParser::PositionalArg>::value) {
# 1492|           return command.get_positional_args();
# 1493|->     }
# 1494|   }
# 1495|   

Error: CPPCHECK_WARNING: [#def54]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5-cli/output/package_info_sections.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def55]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5-cli/output/repo_info.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def56]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5-cli/output/repoqueryformat.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def57]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5-cli/output/transaction_table.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-758): [#def58]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5-cli/output/transaction_table.cpp:47: error[missingReturn]: Found an exit path from function with non-void return type that has missing return statement
#   45|   
#   46|   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: [#def59]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5-cli/progressbar/download_progress_bar.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def60]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5-cli/progressbar/multi_progress_bar.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def61]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5-cli/progressbar/progress_bar.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def62]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5-cli/utils/utf8.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def63]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5-plugins/actions/actions.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def64]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5/advisory/advisory_query.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def65]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5/base/goal.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def66]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5/base/solver_problems.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def67]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5/base/transaction.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def68]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5/comps/environment/environment.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def69]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5/comps/environment/environment.cpp:296:9: warning[deadcode.DeadStores]: Value stored to 'node' is never read
#  294|       for (const auto & group : get_groups()) {
#  295|           // Create an XML node for this package
#  296|->         node = utils::xml::add_subnode_with_text(node_grouplist, "groupid", group);
#  297|       }
#  298|       xmlNodePtr node_optionlist = xmlNewNode(NULL, BAD_CAST "optionlist");

Error: CLANG_WARNING: [#def70]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5/comps/environment/environment.cpp:302:9: warning[deadcode.DeadStores]: Value stored to 'node' is never read
#  300|       for (const auto & group : get_optional_groups()) {
#  301|           // Create an XML node for this package
#  302|->         node = utils::xml::add_subnode_with_text(node_optionlist, "groupid", group);
#  303|       }
#  304|   

Error: CPPCHECK_WARNING: [#def71]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5/comps/environment/query.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def72]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5/comps/group/group.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def73]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5/comps/group/query.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def74]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5/conf/config_parser.cpp:127:9: warning[cplusplus.Move]: Moved-from object 'raw_item' of type 'std::basic_string' is moved
#  125|       }
#  126|       if (!raw_line.empty()) {
#  127|->         p_impl->raw_items[section] = std::move(raw_line);
#  128|       }
#  129|       p_impl->data[std::move(section)] = {};

Error: CLANG_WARNING: [#def75]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5/conf/config_parser.cpp:194:5: warning[cplusplus.Move]: Moved-from object 'value' of type 'std::basic_string' is moved
#  192|           p_impl->raw_items[section + ']' + key] = std::move(raw_item);
#  193|       }
#  194|->     section_iter->second[std::move(key)] = std::move(value);
#  195|   }
#  196|   

Error: CPPCHECK_WARNING: [#def76]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5/conf/vars.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def77]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5/logger/rotating_file_logger.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def78]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5/module/module_sack.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def79]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5/repo/librepo.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def80]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5/repo/package_downloader.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def81]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5/repo/repo.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def82]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5/repo/repo_downloader.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def83]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5/repo/repo_pgp.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def84]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5/repo/repo_sack.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-562): [#def85]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5/repo/repo_sack.cpp:144: error[danglingLifetime]: Non-local variable 'p_impl->cmdline_repo' will use pointer to local variable 'repo'.
#  142|           std::unique_ptr<Repo> repo(new Repo(p_impl->base, CMDLINE_REPO_NAME, Repo::Type::COMMANDLINE));
#  143|           repo->get_config().get_build_cache_option().set(libdnf5::Option::Priority::RUNTIME, false);
#  144|->         p_impl->cmdline_repo = repo.get();
#  145|           add_item(std::move(repo));
#  146|       }

Error: CPPCHECK_WARNING (CWE-562): [#def86]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5/repo/repo_sack.cpp:157: error[danglingLifetime]: Non-local variable 'p_impl->stored_transaction_repo' will use pointer to local variable 'repo'.
#  155|           std::unique_ptr<Repo> repo(new Repo(p_impl->base, STORED_TRANSACTION_NAME, Repo::Type::COMMANDLINE));
#  156|           repo->get_config().get_build_cache_option().set(libdnf5::Option::Priority::RUNTIME, false);
#  157|->         p_impl->stored_transaction_repo = repo.get();
#  158|           add_item(std::move(repo));
#  159|       }

Error: CPPCHECK_WARNING (CWE-562): [#def87]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5/repo/repo_sack.cpp:279: error[danglingLifetime]: Non-local variable 'p_impl->system_repo' will use pointer to local variable 'repo'.
#  277|           // TODO(mblaha): re-enable caching once we can reliably detect whether system repo is up-to-date
#  278|           repo->get_config().get_build_cache_option().set(libdnf5::Option::Priority::RUNTIME, false);
#  279|->         p_impl->system_repo = repo.get();
#  280|           add_item(std::move(repo));
#  281|       }

Error: CPPCHECK_WARNING (CWE-480): [#def88]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5/repo/repo_sack.cpp:371: 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
#  369|               except_in_main_thread = true;
#  370|               finish_sack_loader();
#  371|->             throw;
#  372|           }
#  373|           base->get_logger()->warning(

Error: CPPCHECK_WARNING: [#def89]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5/repo/solv_repo.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-758): [#def90]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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): [#def91]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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: [#def92]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5/rpm/nevra.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def93]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5/rpm/package.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def94]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5/rpm/package_query.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def95]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5/rpm/package_sack.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def96]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5/rpm/rpm_signature.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def97]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5/rpm/solv/goal_private.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def98]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5/solv/pool.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def99]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5/solv/reldep_parser.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-909): [#def100]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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): [#def101]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5/system/state.cpp:113: warning[uninitvar]: Uninitialized variable: group_state.package_types
#  111|           }
#  112|   
#  113|->         return group_state;
#  114|       }
#  115|   };

Error: CPPCHECK_WARNING: [#def102]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5/transaction/transaction_sr.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def103]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5/utils/dnf4convert/dnf4convert.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-457): [#def104]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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: [#def105]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/libdnf5/utils/iniparser.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def106]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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: [#def107]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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: [#def108]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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 (CWE-398): [#def109]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/perl5/libdnf5/CMakeFiles/perl5_logger.dir/loggerPERL_wrap.cxx:2551: error[throwInNoexceptFunction]: Exception thrown in function declared not to throw exceptions.
# 2549|       FREETMPS;
# 2550|       LEAVE;
# 2551|->     Swig::DirectorMethodException::raise(ERRSV);
# 2552|     }
# 2553|     PUTBACK;

Error: CPPCHECK_WARNING (CWE-398): [#def110]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/perl5/libdnf5/CMakeFiles/perl5_logger.dir/loggerPERL_wrap.cxx:2587: error[throwInNoexceptFunction]: Exception thrown in function declared not to throw exceptions.
# 2585|       FREETMPS;
# 2586|       LEAVE;
# 2587|->     Swig::DirectorMethodException::raise(ERRSV);
# 2588|     }
# 2589|     PUTBACK;

Error: CPPCHECK_WARNING: [#def111]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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): [#def112]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/perl5/libdnf5/CMakeFiles/perl5_plugin.dir/pluginPERL_wrap.cxx:2366: error[throwInNoexceptFunction]: Exception thrown in function declared not to throw exceptions.
# 2364|       FREETMPS;
# 2365|       LEAVE;
# 2366|->     Swig::DirectorMethodException::raise(ERRSV);
# 2367|     }
# 2368|     SPAGAIN;

Error: CPPCHECK_WARNING (CWE-398): [#def113]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/perl5/libdnf5/CMakeFiles/perl5_plugin.dir/pluginPERL_wrap.cxx:2403: error[throwInNoexceptFunction]: Exception thrown in function declared not to throw exceptions.
# 2401|       FREETMPS;
# 2402|       LEAVE;
# 2403|->     Swig::DirectorMethodException::raise(ERRSV);
# 2404|     }
# 2405|     SPAGAIN;

Error: CPPCHECK_WARNING (CWE-398): [#def114]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/perl5/libdnf5/CMakeFiles/perl5_plugin.dir/pluginPERL_wrap.cxx:2442: error[throwInNoexceptFunction]: Exception thrown in function declared not to throw exceptions.
# 2440|       FREETMPS;
# 2441|       LEAVE;
# 2442|->     Swig::DirectorMethodException::raise(ERRSV);
# 2443|     }
# 2444|     SPAGAIN;

Error: CPPCHECK_WARNING (CWE-398): [#def115]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/perl5/libdnf5/CMakeFiles/perl5_plugin.dir/pluginPERL_wrap.cxx:2479: error[throwInNoexceptFunction]: Exception thrown in function declared not to throw exceptions.
# 2477|       FREETMPS;
# 2478|       LEAVE;
# 2479|->     Swig::DirectorMethodException::raise(ERRSV);
# 2480|     }
# 2481|     SPAGAIN;

Error: CPPCHECK_WARNING (CWE-398): [#def116]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/perl5/libdnf5/CMakeFiles/perl5_plugin.dir/pluginPERL_wrap.cxx:2520: error[throwInNoexceptFunction]: Exception thrown in function declared not to throw exceptions.
# 2518|       FREETMPS;
# 2519|       LEAVE;
# 2520|->     Swig::DirectorMethodException::raise(ERRSV);
# 2521|     }
# 2522|     SPAGAIN;

Error: CPPCHECK_WARNING (CWE-398): [#def117]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/perl5/libdnf5/CMakeFiles/perl5_plugin.dir/pluginPERL_wrap.cxx:2804: error[throwInNoexceptFunction]: Exception thrown in function declared not to throw exceptions.
# 2802|       FREETMPS;
# 2803|       LEAVE;
# 2804|->     Swig::DirectorMethodException::raise(ERRSV);
# 2805|     }
# 2806|     PUTBACK;

Error: CPPCHECK_WARNING: [#def118]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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: [#def119]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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: CPPCHECK_WARNING: [#def120]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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): [#def121]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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): [#def122]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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): [#def123]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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): [#def124]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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: [#def125]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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: [#def126]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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: [#def127]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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 (CWE-457): [#def128]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_comps.dir/compsRUBY_wrap.cxx:2965: error[uninitvar]: Uninitialized variable: v
# 2963|         if (rb_funcall(obj, swig_lowerthan_id, 1, INT2FIX(0)) != Qfalse)
# 2964|           return SWIG_OverflowError;
# 2965|->       if (val) *val = v;
# 2966|         return SWIG_OK;
# 2967|       }

Error: CPPCHECK_WARNING (CWE-457): [#def129]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_comps.dir/compsRUBY_wrap.cxx:3013: error[uninitvar]: Uninitialized variable: v
# 3011|         if (rb_funcall(obj, swig_lowerthan_id, 1, INT2FIX(0)) != Qfalse)
# 3012|           return SWIG_OverflowError;
# 3013|->       if (val) *val = v;
# 3014|         return SWIG_OK;
# 3015|       }

Error: CPPCHECK_WARNING (CWE-457): [#def130]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_comps.dir/compsRUBY_wrap.cxx:3072: error[uninitvar]: Uninitialized variable: v
# 3070|       a[1] = (VALUE)(&v);
# 3071|       if (rb_rescue(VALUEFUNC(SWIG_AUX_NUM2LONG), (VALUE)a, VALUEFUNC(SWIG_ruby_failed), 0) != Qnil) {
# 3072|->       if (val) *val = v;
# 3073|         return SWIG_OK;
# 3074|       }

Error: CPPCHECK_WARNING (CWE-457): [#def131]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_comps.dir/compsRUBY_wrap.cxx:3103: error[uninitvar]: Uninitialized variable: v
# 3101|       a[1] = (VALUE)(&v);
# 3102|       if (rb_rescue(VALUEFUNC(SWIG_AUX_NUM2LL), (VALUE)a, VALUEFUNC(SWIG_ruby_failed), 0) != Qnil) {
# 3103|->       if (val) *val = v;
# 3104|         return SWIG_OK;
# 3105|       }

Error: CPPCHECK_WARNING: [#def132]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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.2.3.0-build/dnf5-5.2.3.0/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.2.3.0-build/dnf5-5.2.3.0/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.2.3.0-build/dnf5-5.2.3.0/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.2.3.0-build/dnf5-5.2.3.0/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: CLANG_WARNING: [#def137]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_logger.dir/loggerRUBY_wrap.cxx:6295:11: warning[core.CallAndMessage]: Called C++ object pointer is null
# 6293|             (arg1)->libdnf5::Logger::log_line(arg2,(std::string const &)*arg3);
# 6294|           } else {
# 6295|->           (arg1)->log_line(arg2,(std::string const &)*arg3);
# 6296|           }
# 6297|         } catch (const libdnf5::UserAssertionError & e) {

Error: CLANG_WARNING: [#def138]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_logger.dir/loggerRUBY_wrap.cxx:6381:11: warning[core.CallAndMessage]: Called C++ object pointer is null
# 6379|             Swig::DirectorPureVirtualException::raise("libdnf5::Logger::write");
# 6380|           } else {
# 6381|->           (arg1)->write((std::chrono::time_point< std::chrono::system_clock > const &)*arg2,arg3,arg4,(std::string const &)*arg5);
# 6382|           }
# 6383|         } catch (const libdnf5::UserAssertionError & e) {

Error: CLANG_WARNING: [#def139]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_logger.dir/loggerRUBY_wrap.cxx:8052:11: warning[cplusplus.NewDeleteLeaks]: Potential memory leak
# 8050|     }
# 8051|     
# 8052|->   vresult = SWIG_NewPointerObj(new std::unique_ptr< libdnf5::Logger >(std::move(result)), SWIGTYPE_p_std__unique_ptrT_libdnf5__Logger_t, SWIG_POINTER_OWN);
# 8053|     
# 8054|     if (SWIG_IsNewObj(res2)) delete arg2;

Error: CPPCHECK_WARNING: [#def140]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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): [#def141]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:2706: error[uninitvar]: Uninitialized variable: v
# 2704|         if (rb_funcall(obj, swig_lowerthan_id, 1, INT2FIX(0)) != Qfalse)
# 2705|           return SWIG_OverflowError;
# 2706|->       if (val) *val = v;
# 2707|         return SWIG_OK;
# 2708|       }

Error: CPPCHECK_WARNING (CWE-398): [#def142]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:4620: error[throwInNoexceptFunction]: Exception thrown in function declared not to throw exceptions.
# 4618|     swig_res = SWIG_ConvertPtr(result,&swig_argp,SWIGTYPE_p_libdnf5__PluginAPIVersion,  0 );
# 4619|     if (!SWIG_IsOK(swig_res)) {
# 4620|->     Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""libdnf5::PluginAPIVersion""'");
# 4621|     }
# 4622|     c_result = *(reinterpret_cast< libdnf5::PluginAPIVersion * >(swig_argp));

Error: CPPCHECK_WARNING (CWE-398): [#def143]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:4637: error[throwInNoexceptFunction]: Exception thrown in function declared not to throw exceptions.
# 4635|     res = SWIG_AsCharPtrAndSize(result, &buf, NULL, &alloc);
# 4636|     if (!SWIG_IsOK(res)) {
# 4637|->     Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(res)), "in output value of type '""char const *""'");
# 4638|     }
# 4639|     if (alloc == SWIG_NEWOBJ) {

Error: CPPCHECK_WARNING (CWE-398): [#def144]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:4656: error[throwInNoexceptFunction]: Exception thrown in function declared not to throw exceptions.
# 4654|     swig_res = SWIG_ConvertPtr(result,&swig_argp,SWIGTYPE_p_libdnf5__plugin__Version,  0 );
# 4655|     if (!SWIG_IsOK(swig_res)) {
# 4656|->     Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""libdnf5::plugin::Version""'");
# 4657|     }
# 4658|     c_result = *(reinterpret_cast< libdnf5::plugin::Version * >(swig_argp));

Error: CPPCHECK_WARNING (CWE-398): [#def145]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:4673: error[throwInNoexceptFunction]: Exception thrown in function declared not to throw exceptions.
# 4671|     swig_res = SWIG_ConvertPtrAndOwn(result, &swig_argp, SWIGTYPE_p_p_char,  0  | SWIG_POINTER_DISOWN, &own);
# 4672|     if (!SWIG_IsOK(swig_res)) {
# 4673|->     Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""char const *const *""'");
# 4674|     }
# 4675|     c_result = reinterpret_cast< char ** >(swig_argp);

Error: CPPCHECK_WARNING (CWE-398): [#def146]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:4693: error[throwInNoexceptFunction]: Exception thrown in function declared not to throw exceptions.
# 4691|     res = SWIG_AsCharPtrAndSize(result, &buf, NULL, &alloc);
# 4692|     if (!SWIG_IsOK(res)) {
# 4693|->     Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(res)), "in output value of type '""char const *""'");
# 4694|     }
# 4695|     if (alloc == SWIG_NEWOBJ) {

Error: CLANG_WARNING: [#def147]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:5147:16: warning[core.CallAndMessage]: Called C++ object pointer is null
# 5145|         Swig::DirectorPureVirtualException::raise("libdnf5::plugin::IPlugin::get_api_version");
# 5146|       } else {
# 5147|->       result = ((libdnf5::plugin::IPlugin const *)arg1)->get_api_version();
# 5148|       }
# 5149|     } catch (Swig::DirectorException& e) {

Error: CLANG_WARNING: [#def148]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:5153:11: warning[cplusplus.NewDeleteLeaks]: Potential memory leak
# 5151|       SWIG_fail;
# 5152|     }
# 5153|->   vresult = SWIG_NewPointerObj((new libdnf5::PluginAPIVersion(result)), SWIGTYPE_p_libdnf5__PluginAPIVersion, SWIG_POINTER_OWN |  0 );
# 5154|     return vresult;
# 5155|   fail:

Error: CLANG_WARNING: [#def149]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:5184:24: warning[core.CallAndMessage]: Called C++ object pointer is null
# 5182|         Swig::DirectorPureVirtualException::raise("libdnf5::plugin::IPlugin::get_name");
# 5183|       } else {
# 5184|->       result = (char *)((libdnf5::plugin::IPlugin const *)arg1)->get_name();
# 5185|       }
# 5186|     } catch (Swig::DirectorException& e) {

Error: CLANG_WARNING: [#def150]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:5224:16: warning[core.CallAndMessage]: Called C++ object pointer is null
# 5222|         Swig::DirectorPureVirtualException::raise("libdnf5::plugin::IPlugin::get_version");
# 5223|       } else {
# 5224|->       result = ((libdnf5::plugin::IPlugin const *)arg1)->get_version();
# 5225|       }
# 5226|     } catch (Swig::DirectorException& e) {

Error: CLANG_WARNING: [#def151]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:5230:11: warning[cplusplus.NewDeleteLeaks]: Potential memory leak
# 5228|       SWIG_fail;
# 5229|     }
# 5230|->   vresult = SWIG_NewPointerObj((new libdnf5::plugin::Version(result)), SWIGTYPE_p_libdnf5__plugin__Version, SWIG_POINTER_OWN |  0 );
# 5231|     return vresult;
# 5232|   fail:

Error: CLANG_WARNING: [#def152]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:5261:25: warning[core.CallAndMessage]: Called C++ object pointer is null
# 5259|         Swig::DirectorPureVirtualException::raise("libdnf5::plugin::IPlugin::get_attributes");
# 5260|       } else {
# 5261|->       result = (char **)((libdnf5::plugin::IPlugin const *)arg1)->get_attributes();
# 5262|       }
# 5263|     } catch (Swig::DirectorException& e) {

Error: CLANG_WARNING: [#def153]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:5310:24: warning[core.CallAndMessage]: Called C++ object pointer is null
# 5308|         Swig::DirectorPureVirtualException::raise("libdnf5::plugin::IPlugin::get_attribute");
# 5309|       } else {
# 5310|->       result = (char *)((libdnf5::plugin::IPlugin const *)arg1)->get_attribute((char const *)arg2);
# 5311|       }
# 5312|     } catch (Swig::DirectorException& e) {

Error: CLANG_WARNING: [#def154]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:5350:7: warning[core.CallAndMessage]: Called C++ object pointer is null
# 5348|         (arg1)->libdnf5::plugin::IPlugin::load_plugins();
# 5349|       } else {
# 5350|->       (arg1)->load_plugins();
# 5351|       }
# 5352|     } catch (Swig::DirectorException& e) {

Error: CLANG_WARNING: [#def155]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:5384:7: warning[core.CallAndMessage]: Called C++ object pointer is null
# 5382|         (arg1)->libdnf5::plugin::IPlugin::init();
# 5383|       } else {
# 5384|->       (arg1)->init();
# 5385|       }
# 5386|     } catch (Swig::DirectorException& e) {

Error: CLANG_WARNING: [#def156]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:5418:7: warning[core.CallAndMessage]: Called C++ object pointer is null
# 5416|         (arg1)->libdnf5::plugin::IPlugin::pre_base_setup();
# 5417|       } else {
# 5418|->       (arg1)->pre_base_setup();
# 5419|       }
# 5420|     } catch (Swig::DirectorException& e) {

Error: CLANG_WARNING: [#def157]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:5452:7: warning[core.CallAndMessage]: Called C++ object pointer is null
# 5450|         (arg1)->libdnf5::plugin::IPlugin::post_base_setup();
# 5451|       } else {
# 5452|->       (arg1)->post_base_setup();
# 5453|       }
# 5454|     } catch (Swig::DirectorException& e) {

Error: CLANG_WARNING: [#def158]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:5486:7: warning[core.CallAndMessage]: Called C++ object pointer is null
# 5484|         (arg1)->libdnf5::plugin::IPlugin::repos_configured();
# 5485|       } else {
# 5486|->       (arg1)->repos_configured();
# 5487|       }
# 5488|     } catch (Swig::DirectorException& e) {

Error: CLANG_WARNING: [#def159]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:5520:7: warning[core.CallAndMessage]: Called C++ object pointer is null
# 5518|         (arg1)->libdnf5::plugin::IPlugin::repos_loaded();
# 5519|       } else {
# 5520|->       (arg1)->repos_loaded();
# 5521|       }
# 5522|     } catch (Swig::DirectorException& e) {

Error: CLANG_WARNING: [#def160]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:5567:7: warning[core.CallAndMessage]: Called C++ object pointer is null
# 5565|         (arg1)->libdnf5::plugin::IPlugin::pre_add_cmdline_packages((std::vector< std::string,std::allocator< std::string > > const &)*arg2);
# 5566|       } else {
# 5567|->       (arg1)->pre_add_cmdline_packages((std::vector< std::string,std::allocator< std::string > > const &)*arg2);
# 5568|       }
# 5569|     } catch (Swig::DirectorException& e) {

Error: CLANG_WARNING: [#def161]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:5603:7: warning[core.CallAndMessage]: Called C++ object pointer is null
# 5601|         (arg1)->libdnf5::plugin::IPlugin::post_add_cmdline_packages();
# 5602|       } else {
# 5603|->       (arg1)->post_add_cmdline_packages();
# 5604|       }
# 5605|     } catch (Swig::DirectorException& e) {

Error: CLANG_WARNING: [#def162]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:5648:7: warning[core.CallAndMessage]: Called C++ object pointer is null
# 5646|         (arg1)->libdnf5::plugin::IPlugin::pre_transaction((libdnf5::base::Transaction const &)*arg2);
# 5647|       } else {
# 5648|->       (arg1)->pre_transaction((libdnf5::base::Transaction const &)*arg2);
# 5649|       }
# 5650|     } catch (Swig::DirectorException& e) {

Error: CLANG_WARNING: [#def163]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:5693:7: warning[core.CallAndMessage]: Called C++ object pointer is null
# 5691|         (arg1)->libdnf5::plugin::IPlugin::post_transaction((libdnf5::base::Transaction const &)*arg2);
# 5692|       } else {
# 5693|->       (arg1)->post_transaction((libdnf5::base::Transaction const &)*arg2);
# 5694|       }
# 5695|     } catch (Swig::DirectorException& e) {

Error: CLANG_WARNING: [#def164]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:5727:7: warning[core.CallAndMessage]: Called C++ object pointer is null
# 5725|         (arg1)->libdnf5::plugin::IPlugin::finish();
# 5726|       } else {
# 5727|->       (arg1)->finish();
# 5728|       }
# 5729|     } catch (Swig::DirectorException& e) {

Error: CLANG_WARNING: [#def165]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:5974:11: warning[cplusplus.NewDeleteLeaks]: Potential memory leak
# 5972|     arg1 = reinterpret_cast< libdnf5::plugin::PluginInfo * >(argp1);
# 5973|     result = ((libdnf5::plugin::PluginInfo const *)arg1)->get_api_version();
# 5974|->   vresult = SWIG_NewPointerObj((new libdnf5::PluginAPIVersion(result)), SWIGTYPE_p_libdnf5__PluginAPIVersion, SWIG_POINTER_OWN |  0 );
# 5975|     return vresult;
# 5976|   fail:

Error: CLANG_WARNING: [#def166]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:6022:11: warning[cplusplus.NewDeleteLeaks]: Potential memory leak
# 6020|     arg1 = reinterpret_cast< libdnf5::plugin::PluginInfo * >(argp1);
# 6021|     result = ((libdnf5::plugin::PluginInfo const *)arg1)->get_version();
# 6022|->   vresult = SWIG_NewPointerObj((new libdnf5::plugin::Version(result)), SWIGTYPE_p_libdnf5__plugin__Version, SWIG_POINTER_OWN |  0 );
# 6023|     return vresult;
# 6024|   fail:

Error: CPPCHECK_WARNING: [#def167]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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: [#def168]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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): [#def169]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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): [#def170]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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): [#def171]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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): [#def172]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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: [#def173]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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): [#def174]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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): [#def175]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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): [#def176]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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: [#def177]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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: [#def178]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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: [#def179]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/test/dnf5-plugins/copr_plugin/CoprRepoTest.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-416): [#def180]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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): [#def181]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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): [#def182]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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): [#def183]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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): [#def184]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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): [#def185]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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): [#def186]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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): [#def187]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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): [#def188]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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): [#def189]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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): [#def190]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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): [#def191]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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): [#def192]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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): [#def193]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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: [#def194]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/test/libdnf5/conf/test_config_parser.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def195]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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: [#def196]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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: [#def197]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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: [#def198]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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): [#def199]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/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): [#def200]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/test/shared/base_test_case.cpp:117: warning[containerOutOfBounds]: Either the condition 'found.empty()' is redundant or expression 'found.begin()' causes access out of bounds.
#  115|       }
#  116|   
#  117|->     return *found.begin();
#  118|   }
#  119|   

Error: CPPCHECK_WARNING (CWE-398): [#def201]
dnf5-5.2.3.0-build/dnf5-5.2.3.0/test/shared/base_test_case.cpp:138: warning[containerOutOfBounds]: Either the condition 'found.empty()' is redundant or expression 'found.begin()' causes access out of bounds.
#  136|       }
#  137|   
#  138|->     return *found.begin();
#  139|   }
#  140|   

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-179.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namednf5-5.2.3.0-3.fc41
store-results-to/tmp/tmpz6_sdbxt/dnf5-5.2.3.0-3.fc41.tar.xz
time-created2024-07-03 12:41:06
time-finished2024-07-03 12:58:49
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpz6_sdbxt/dnf5-5.2.3.0-3.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpz6_sdbxt/dnf5-5.2.3.0-3.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9