libdnf-0.73.1-2.fc41

List of Defects

Error: COMPILER_WARNING (CWE-758): [#def1]
libdnf-0.73.1-build/libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_common_types.dir/common_typesPYTHON_wrap.cxx:3230:24: warning[-Wmissing-declarations]: no previous declaration for ‘PyObject* PyInit__common_types()’
# 3230 | #  define SWIG_init    PyInit__common_types
#      |                        ^~~~~~~~~~~~~~~~~~~~
libdnf-0.73.1-build/libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_common_types.dir/common_typesPYTHON_wrap.cxx:17885:1: note: in expansion of macro ‘SWIG_init’
#17885 | SWIG_init(void) {
#      | ^~~~~~~~~
# 3228|     ------------------------------------------------*/
# 3229|   #if PY_VERSION_HEX >= 0x03000000
# 3230|-> #  define SWIG_init    PyInit__common_types
# 3231|   
# 3232|   #else

Error: COMPILER_WARNING (CWE-758): [#def2]
libdnf-0.73.1-build/libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_conf.dir/confPYTHON_wrap.cxx:3262:24: warning[-Wmissing-declarations]: no previous declaration for ‘PyObject* PyInit__conf()’
# 3262 | #  define SWIG_init    PyInit__conf
#      |                        ^~~~~~~~~~~~
libdnf-0.73.1-build/libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_conf.dir/confPYTHON_wrap.cxx:30315:1: note: in expansion of macro ‘SWIG_init’
#30315 | SWIG_init(void) {
#      | ^~~~~~~~~
# 3260|     ------------------------------------------------*/
# 3261|   #if PY_VERSION_HEX >= 0x03000000
# 3262|-> #  define SWIG_init    PyInit__conf
# 3263|   
# 3264|   #else

Error: CLANG_WARNING: [#def3]
libdnf-0.73.1-build/libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_error.dir/errorPYTHON_wrap.cxx:3090:3: warning[core.uninitialized.UndefReturn]: Undefined or garbage value returned to caller
# 3088|       PyErr_Clear();
# 3089|     }
# 3090|->   return result;
# 3091|   }
# 3092|   

Error: COMPILER_WARNING (CWE-758): [#def4]
libdnf-0.73.1-build/libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_error.dir/errorPYTHON_wrap.cxx:3180:24: warning[-Wmissing-declarations]: no previous declaration for ‘PyObject* PyInit__error()’
# 3180 | #  define SWIG_init    PyInit__error
#      |                        ^~~~~~~~~~~~~
libdnf-0.73.1-build/libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_error.dir/errorPYTHON_wrap.cxx:3682:1: note: in expansion of macro ‘SWIG_init’
# 3682 | SWIG_init(void) {
#      | ^~~~~~~~~
# 3178|     ------------------------------------------------*/
# 3179|   #if PY_VERSION_HEX >= 0x03000000
# 3180|-> #  define SWIG_init    PyInit__error
# 3181|   
# 3182|   #else

Error: COMPILER_WARNING (CWE-758): [#def5]
libdnf-0.73.1-build/libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_module.dir/modulePYTHON_wrap.cxx: scope_hint: At global scope
libdnf-0.73.1-build/libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_module.dir/modulePYTHON_wrap.cxx:3238:24: warning[-Wmissing-declarations]: no previous declaration for ‘PyObject* PyInit__module()’
# 3238 | #  define SWIG_init    PyInit__module
#      |                        ^~~~~~~~~~~~~~
libdnf-0.73.1-build/libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_module.dir/modulePYTHON_wrap.cxx:32230:1: note: in expansion of macro ‘SWIG_init’
#32230 | SWIG_init(void) {
#      | ^~~~~~~~~
# 3236|     ------------------------------------------------*/
# 3237|   #if PY_VERSION_HEX >= 0x03000000
# 3238|-> #  define SWIG_init    PyInit__module
# 3239|   
# 3240|   #else

Error: COMPILER_WARNING (CWE-477): [#def6]
libdnf-0.73.1-build/libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_module.dir/modulePYTHON_wrap.cxx: scope_hint: In function ‘PyObject* _wrap_ModulePackageContainer_getDisabledStreams(PyObject*, PyObject*)’
libdnf-0.73.1-build/libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_module.dir/modulePYTHON_wrap.cxx:29627:42: warning[-Wdeprecated-declarations]: ‘std::map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> > libdnf::ModulePackageContainer::getDisabledStreams()’ is deprecated: Will be removed after 2019-12-31. Use getDisabledModules() instead.
#29627 |       result = (arg1)->getDisabledStreams();
#      |                ~~~~~~~~~~~~~~~~~~~~~~~~~~^~
libdnf-0.73.1-build/libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_module.dir/modulePYTHON_wrap.cxx:3904: included_from: Included from here.
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/module/ModulePackageContainer.hpp:251:40: note: declared here
#  251 |     std::map<std::string, std::string> getDisabledStreams();
#      |                                        ^~~~~~~~~~~~~~~~~~
#29625|     {
#29626|       try {
#29627|->       result = (arg1)->getDisabledStreams();
#29628|       } catch (const libdnf::Error & e) {
#29629|         PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));

Error: COMPILER_WARNING (CWE-477): [#def7]
libdnf-0.73.1-build/libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_module.dir/modulePYTHON_wrap.cxx: scope_hint: In function ‘PyObject* _wrap_ModulePackageContainer_getResetStreams(PyObject*, PyObject*)’
libdnf-0.73.1-build/libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_module.dir/modulePYTHON_wrap.cxx:29697:39: warning[-Wdeprecated-declarations]: ‘std::map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> > libdnf::ModulePackageContainer::getResetStreams()’ is deprecated: Will be removed after 2019-12-31. Use getResetModules() instead.
#29697 |       result = (arg1)->getResetStreams();
#      |                ~~~~~~~~~~~~~~~~~~~~~~~^~
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/module/ModulePackageContainer.hpp:263:40: note: declared here
#  263 |     std::map<std::string, std::string> getResetStreams();
#      |                                        ^~~~~~~~~~~~~~~
#29695|     {
#29696|       try {
#29697|->       result = (arg1)->getResetStreams();
#29698|       } catch (const libdnf::Error & e) {
#29699|         PyErr_SetString(libdnf_error, const_cast<char*>(e.what()));

Error: COMPILER_WARNING (CWE-758): [#def8]
libdnf-0.73.1-build/libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_repo.dir/repoPYTHON_wrap.cxx:3723:24: warning[-Wmissing-declarations]: no previous declaration for ‘PyObject* PyInit__repo()’
# 3723 | #  define SWIG_init    PyInit__repo
#      |                        ^~~~~~~~~~~~
libdnf-0.73.1-build/libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_repo.dir/repoPYTHON_wrap.cxx:17565:1: note: in expansion of macro ‘SWIG_init’
#17565 | SWIG_init(void) {
#      | ^~~~~~~~~
# 3721|     ------------------------------------------------*/
# 3722|   #if PY_VERSION_HEX >= 0x03000000
# 3723|-> #  define SWIG_init    PyInit__repo
# 3724|   
# 3725|   #else

Error: COMPILER_WARNING (CWE-758): [#def9]
libdnf-0.73.1-build/libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:3204:24: warning[-Wmissing-declarations]: no previous declaration for ‘PyObject* PyInit__smartcols()’
# 3204 | #  define SWIG_init    PyInit__smartcols
#      |                        ^~~~~~~~~~~~~~~~~
libdnf-0.73.1-build/libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:11748:1: note: in expansion of macro ‘SWIG_init’
#11748 | SWIG_init(void) {
#      | ^~~~~~~~~
# 3202|     ------------------------------------------------*/
# 3203|   #if PY_VERSION_HEX >= 0x03000000
# 3204|-> #  define SWIG_init    PyInit__smartcols
# 3205|   
# 3206|   #else

Error: COMPILER_WARNING (CWE-758): [#def10]
libdnf-0.73.1-build/libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:3235:24: warning[-Wmissing-declarations]: no previous declaration for ‘PyObject* PyInit__transaction()’
# 3235 | #  define SWIG_init    PyInit__transaction
#      |                        ^~~~~~~~~~~~~~~~~~~
libdnf-0.73.1-build/libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:20912:1: note: in expansion of macro ‘SWIG_init’
#20912 | SWIG_init(void) {
#      | ^~~~~~~~~
# 3233|     ------------------------------------------------*/
# 3234|   #if PY_VERSION_HEX >= 0x03000000
# 3235|-> #  define SWIG_init    PyInit__transaction
# 3236|   
# 3237|   #else

Error: COMPILER_WARNING (CWE-758): [#def11]
libdnf-0.73.1-build/libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_utils.dir/utilsPYTHON_wrap.cxx:3680:24: warning[-Wmissing-declarations]: no previous declaration for ‘PyObject* PyInit__utils()’
# 3680 | #  define SWIG_init    PyInit__utils
#      |                        ^~~~~~~~~~~~~
libdnf-0.73.1-build/libdnf-0.73.1/build-py3/bindings/python/CMakeFiles/_utils.dir/utilsPYTHON_wrap.cxx:7181:1: note: in expansion of macro ‘SWIG_init’
# 7181 | SWIG_init(void) {
#      | ^~~~~~~~~
# 3678|     ------------------------------------------------*/
# 3679|   #if PY_VERSION_HEX >= 0x03000000
# 3680|-> #  define SWIG_init    PyInit__utils
# 3681|   
# 3682|   #else

Error: CPPCHECK_WARNING: [#def12]
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/conf/ConfigMain.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def13]
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/conf/ConfigParser.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-562): [#def14]
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/conf/ConfigParser.cpp:194: error[invalidLifetime]: Using pointer to local variable 'empty' that is out of scope.
#  192|   
#  193|               // If there is no substitution to make, move past the variable expression and continue.
#  194|->             if (subst_str == nullptr) {
#  195|                   total_scanned += pos_after_variable_expression - pos;
#  196|                   pos = pos_after_variable_expression;

Error: CLANG_WARNING: [#def15]
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/conf/ConfigParser.cpp:21: included_from: Included from here.
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/conf/ConfigParser.hpp:201:9: warning[cplusplus.Move]: Moved-from object 'rawItem' of type 'std::basic_string' is moved
#  199|           return false;
#  200|       if (!rawLine.empty())
#  201|->         rawItems[section] = std::move(rawLine);
#  202|       data[std::move(section)] = {};
#  203|       return true;

Error: CLANG_WARNING: [#def16]
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/conf/ConfigParser.hpp:243:5: warning[cplusplus.Move]: Moved-from object 'value' of type 'std::basic_string' is moved
#  241|       else
#  242|           rawItems[section + ']' + key] = std::move(rawItem);
#  243|->     sectionIter->second[std::move(key)] = std::move(value);
#  244|   }
#  245|   

Error: CPPCHECK_WARNING: [#def17]
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/conf/OptionBinds.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def18]
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/conf/OptionBool.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def19]
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/conf/OptionEnum.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def20]
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/conf/OptionNumber.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def21]
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/conf/OptionPath.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def22]
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/conf/OptionSeconds.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def23]
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/conf/OptionString.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def24]
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/conf/OptionStringList.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def25]
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/dnf-context.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def26]
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/dnf-goal.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def27]
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/dnf-lock.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def28]
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/dnf-package.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def29]
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/dnf-repo-loader.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def30]
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/dnf-repo.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def31]
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/dnf-repo.cpp:986:16: warning[unix.Malloc]: Potential leak of memory pointed to by 'baseurls'
#  984|       }
#  985|       if (!lr_handle_setopt(priv->repo_handle, error, LRO_URLS, baseurls))
#  986|->         return FALSE;
#  987|   
#  988|       const char *mirrorlisturl = NULL;

Error: CPPCHECK_WARNING: [#def32]
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/dnf-rpmts.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def33]
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/dnf-sack.cpp:1799:28: warning[deadcode.DeadStores]: Although the value stored to 'flags' is used in the enclosing expression, the value is never actually read from 'flags'
# 1797|       auto repoImpl = libdnf::repoGetImpl(hrepo);
# 1798|   
# 1799|->     repoImpl->load_flags = flags &= ~DNF_SACK_LOAD_FLAG_BUILD_CACHE;
# 1800|   
# 1801|       repo = repo_create(pool, HY_SYSTEM_REPO_NAME);

Error: CPPCHECK_WARNING: [#def34]
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/dnf-state.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def35]
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/dnf-transaction.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def36]
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/goal/Goal.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-562): [#def37]
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/hy-iutil.cpp:547: error[returnDanglingLifetime]: Returning pointer to local variable 'dup' that will be invalid when returning.
#  545|   {
#  546|       char *dup = pool_alloctmpspace(pool, strlen(s) + 1);
#  547|->     return strcpy(dup, s);
#  548|   }
#  549|   

Error: COMPILER_WARNING: [#def38]
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/hy-package.cpp:58:3: warning[-Wodr]: type ‘struct DnfPackagePrivate’ violates the C++ One Definition Rule
#   58 | } DnfPackagePrivate;
#      |   ^
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/dnf-package.cpp:62:3: note: a different type is defined in another translation unit
#   62 | } DnfPackagePrivate;
#      |   ^
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/hy-package.cpp:55:22: note: the first difference of corresponding definitions is field ‘loaded’
#   55 |     gboolean         loaded;
#      |                      ^
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/dnf-package.cpp:54:22: note: a field with different name is defined in another translation unit
#   54 |     char            *checksum_str;
#      |                      ^
#   56|       Id               id;
#   57|       DnfSack         *sack;
#   58|-> } DnfPackagePrivate;
#   59|   
#   60|   G_DEFINE_TYPE_WITH_PRIVATE(DnfPackage, dnf_package, G_TYPE_OBJECT)

Error: CPPCHECK_WARNING: [#def39]
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/module/ModulePackage.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def40]
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/module/ModulePackageContainer.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def41]
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/module/modulemd/ModuleMetadata.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def42]
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/plugin/plugin.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def43]
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/repo/Crypto.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def44]
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/repo/DependencySplitter.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def45]
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/transaction/MergedTransaction.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def46]
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/transaction/Swdb.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def47]
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/transaction/private/Transaction.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def48]
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/utils/filesystem.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def49]
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/utils/iniparser/iniparser.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def50]
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/utils/os-release.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def51]
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/utils/smartcols/Table.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def52]
libdnf-0.73.1-build/libdnf-0.73.1/libdnf/utils/utils.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def53]
libdnf-0.73.1-build/libdnf-0.73.1/python/hawkey/subject-py.cpp:196:17: warning[cplusplus.Move]: Method called on moved-from object 'nevraObj'
#  194|       } else {
#  195|           for (std::size_t i = 0; HY_FORMS_MOST_SPEC[i] != _HY_FORM_STOP_; ++i) {
#  196|->             if (nevraObj.parse(self->pattern, HY_FORMS_MOST_SPEC[i])) {
#  197|                   if (!addNevraToPyList(list.get(), std::move(nevraObj)))
#  198|                       return NULL;

Error: CLANG_WARNING: [#def54]
libdnf-0.73.1-build/libdnf-0.73.1/python/hawkey/subject-py.cpp:261:17: warning[cplusplus.Move]: Method called on moved-from object 'nsvcapObj'
#  259|       } else {
#  260|           for (std::size_t i = 0; HY_MODULE_FORMS_MOST_SPEC[i] != _HY_MODULE_FORM_STOP_; ++i) {
#  261|->             if (nsvcapObj.parse(self->pattern, HY_MODULE_FORMS_MOST_SPEC[i])) {
#  262|                   if (!addNsvcapToPyList(list.get(), std::move(nsvcapObj)))
#  263|                       return NULL;

Error: COMPILER_WARNING (CWE-685): [#def55]
libdnf-0.73.1-build/libdnf-0.73.1/tests/hawkey/test_suites.h:24: included_from: Included from here.
libdnf-0.73.1-build/libdnf-0.73.1/tests/hawkey/test_goal.cpp:38: included_from: Included from here.
libdnf-0.73.1-build/libdnf-0.73.1/tests/hawkey/test_goal.cpp: scope_hint: In function ‘DnfPackage* get_latest_pkg(DnfSack*, const char*)’
libdnf-0.73.1-build/libdnf-0.73.1/tests/hawkey/test_goal.cpp:54:17: warning[-Wformat-extra-args]: too many arguments for format
#   54 |                 "get_latest_pkg() failed finding '%s'.", name);
#      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libdnf-0.73.1-build/libdnf-0.73.1/tests/hawkey/test_goal.cpp: scope_hint: In instantiation of ‘void assert_list_names(bool, GPtrArray*, ...) [with const char* (* getCharFromPackage)(DnfPackage*) = dnf_package_get_name; GPtrArray = _GPtrArray]’
#/builddir/build/BUILD/libdnf-0.73.1-build/libdnf-0.73.1/tests/hawkey/test_goal.cpp:474:45:   required from here
#  474 |     assert_list_names<&dnf_package_get_name>(true, plist, "penny", NULL);
#      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   52|       GPtrArray *plist = hy_query_run(q);
#   53|       fail_unless(plist->len == 1,
#   54|->                 "get_latest_pkg() failed finding '%s'.", name);
#   55|       auto pkg = static_cast<DnfPackage *>(g_object_ref(g_ptr_array_index(plist, 0)));
#   56|       hy_query_free(q);

Error: COMPILER_WARNING (CWE-685): [#def56]
libdnf-0.73.1-build/libdnf-0.73.1/tests/hawkey/test_goal.cpp:439:18: warning[-Wformat-extra-args]: too many arguments for format
#  439 |             fail("assert_list_names(): list too short");
#      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  437|       while ((name = va_arg(names, char *)) != NULL) {
#  438|           if (i++ >= count) {
#  439|->             fail("assert_list_names(): list too short");
#  440|           }
#  441|           bool found = false;

Error: COMPILER_WARNING (CWE-685): [#def57]
libdnf-0.73.1-build/libdnf-0.73.1/tests/hawkey/test_goal.cpp:449:32: warning[-Wformat-extra-args]: too many arguments for format
#  449 |             fail_unless(false, "assert_list_names(): element '%s' %sfound '%zu'",
#      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  447|           }
#  448|           if ((wanted && !found) || (!wanted && found)) {
#  449|->             fail_unless(false, "assert_list_names(): element '%s' %sfound '%zu'",
#  450|                           name, wanted ? "not ": "", stringVector.size());
#  451|           }

Error: COMPILER_WARNING (CWE-685): [#def58]
libdnf-0.73.1-build/libdnf-0.73.1/tests/hawkey/test_goal.cpp:458:33: warning[-Wformat-extra-args]: too many arguments for format
#  458 |         fail_unless(i == count, "assert_list_names(): too many items in the list (%d vs %d)", i, count);
#      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libdnf-0.73.1-build/libdnf-0.73.1/tests/hawkey/test_goal.cpp: scope_hint: In instantiation of ‘void assert_list_names(bool, GPtrArray*, ...) [with const char* (* getCharFromPackage)(DnfPackage*) = dnf_package_get_nevra; GPtrArray = _GPtrArray]’
#/builddir/build/BUILD/libdnf-0.73.1-build/libdnf-0.73.1/tests/hawkey/test_goal.cpp:1064:50:   required from here
# 1064 |         assert_list_names<&dnf_package_get_nevra>(true, plist, "bloop-2.0-1.noarch", "dog-1-2.x86_64", "fool-1-5.noarch",
#      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1065 |             "flying-3.1-0.x86_64", "pilchard-1.2.4-1.x86_64", "pilchard-1.2.4-1.i686", NULL);
#      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  456|       // already checked above.
#  457|       if (wanted) {
#  458|->         fail_unless(i == count, "assert_list_names(): too many items in the list (%d vs %d)", i, count);
#  459|       }
#  460|       va_end(names);

Error: CPPCHECK_WARNING: [#def59]
libdnf-0.73.1-build/libdnf-0.73.1/tests/libdnf/module/ContextTest.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def60]
libdnf-0.73.1-build/libdnf-0.73.1/tests/libdnf/transaction/WorkflowTest.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-204.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namelibdnf-0.73.1-2.fc41
store-results-to/tmp/tmppipj1jsm/libdnf-0.73.1-2.fc41.tar.xz
time-created2024-07-03 14:45:44
time-finished2024-07-03 14:50:35
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmppipj1jsm/libdnf-0.73.1-2.fc41.tar.xz' '--gcc-analyze' '/tmp/tmppipj1jsm/libdnf-0.73.1-2.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9