Error: CPPCHECK_WARNING: [#def1] 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: [#def2] 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: [#def3] 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: [#def4] 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: [#def5] 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: [#def6] 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: [#def7] 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: CPPCHECK_WARNING: [#def8] 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: [#def9] 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): [#def10] 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: [#def11] 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 (CWE-562): [#def12] 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): [#def13] 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): [#def14] 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: CLANG_WARNING: [#def15] 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: [#def16] 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: [#def17] 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: [#def18] 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: [#def19] 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: [#def20] 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: [#def21] 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: [#def22] 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.
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 |
diffbase-analyzer-version-clang | 18.1.7 |
diffbase-analyzer-version-cppcheck | 2.14.2 |
diffbase-analyzer-version-gcc | 14.1.1 |
diffbase-analyzer-version-gcc-analyzer | 14.1.1 |
diffbase-analyzer-version-shellcheck | 0.10.0 |
diffbase-enabled-plugins | clang, cppcheck, gcc, shellcheck |
diffbase-exit-code | 0 |
diffbase-host | ip-172-16-1-179.us-west-2.compute.internal |
diffbase-mock-config | fedora-41-x86_64 |
diffbase-project-name | dnf5-5.1.15-1.fc40 |
diffbase-store-results-to | /tmp/tmpug8n0x9m/dnf5-5.1.15-1.fc40.tar.xz |
diffbase-time-created | 2024-07-03 12:21:33 |
diffbase-time-finished | 2024-07-03 12:40:52 |
diffbase-tool | csmock |
diffbase-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' |
diffbase-tool-version | csmock-3.5.3-1.el9 |
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.2.3.0-3.fc41 |
store-results-to | /tmp/tmpz6_sdbxt/dnf5-5.2.3.0-3.fc41.tar.xz |
time-created | 2024-07-03 12:41:06 |
time-finished | 2024-07-03 12:58:49 |
title | Newly introduced defects |
tool | csmock |
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-version | csmock-3.5.3-1.el9 |