libdnf-0.74.0-1.fc43
List of Findings
Error: COMPILER_WARNING (CWE-758): [#def1]
libdnf-0.74.0/build-py3/bindings/python/CMakeFiles/_common_types.dir/common_typesPYTHON_wrap.cxx:3274:24: warning[-Wmissing-declarations]: no previous declaration for ‘PyObject* PyInit__common_types()’
libdnf-0.74.0/build-py3/bindings/python/CMakeFiles/_common_types.dir/common_typesPYTHON_wrap.cxx:17847:1: note: in expansion of macro ‘SWIG_init’
Error: COMPILER_WARNING (CWE-758): [#def2]
libdnf-0.74.0/build-py3/bindings/python/CMakeFiles/_conf.dir/confPYTHON_wrap.cxx:3306:24: warning[-Wmissing-declarations]: no previous declaration for ‘PyObject* PyInit__conf()’
libdnf-0.74.0/build-py3/bindings/python/CMakeFiles/_conf.dir/confPYTHON_wrap.cxx:30381:1: note: in expansion of macro ‘SWIG_init’
Error: COMPILER_WARNING (CWE-758): [#def3]
libdnf-0.74.0/build-py3/bindings/python/CMakeFiles/_error.dir/errorPYTHON_wrap.cxx:3224:24: warning[-Wmissing-declarations]: no previous declaration for ‘PyObject* PyInit__error()’
libdnf-0.74.0/build-py3/bindings/python/CMakeFiles/_error.dir/errorPYTHON_wrap.cxx:3725:1: note: in expansion of macro ‘SWIG_init’
Error: COMPILER_WARNING (CWE-758): [#def4]
libdnf-0.74.0/build-py3/bindings/python/CMakeFiles/_module.dir/modulePYTHON_wrap.cxx: scope_hint: At global scope
libdnf-0.74.0/build-py3/bindings/python/CMakeFiles/_module.dir/modulePYTHON_wrap.cxx:3282:24: warning[-Wmissing-declarations]: no previous declaration for ‘PyObject* PyInit__module()’
libdnf-0.74.0/build-py3/bindings/python/CMakeFiles/_module.dir/modulePYTHON_wrap.cxx:32262:1: note: in expansion of macro ‘SWIG_init’
Error: COMPILER_WARNING (CWE-477): [#def5]
libdnf-0.74.0/build-py3/bindings/python/CMakeFiles/_module.dir/modulePYTHON_wrap.cxx: scope_hint: In function ‘PyObject* _wrap_ModulePackageContainer_getDisabledStreams(PyObject*, PyObject*)’
libdnf-0.74.0/build-py3/bindings/python/CMakeFiles/_module.dir/modulePYTHON_wrap.cxx:29659: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.
libdnf-0.74.0/build-py3/bindings/python/CMakeFiles/_module.dir/modulePYTHON_wrap.cxx:3942: included_from: Included from here.
libdnf-0.74.0/libdnf/module/ModulePackageContainer.hpp:251:40: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def6]
libdnf-0.74.0/build-py3/bindings/python/CMakeFiles/_module.dir/modulePYTHON_wrap.cxx: scope_hint: In function ‘PyObject* _wrap_ModulePackageContainer_getResetStreams(PyObject*, PyObject*)’
libdnf-0.74.0/build-py3/bindings/python/CMakeFiles/_module.dir/modulePYTHON_wrap.cxx:29729: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.
libdnf-0.74.0/libdnf/module/ModulePackageContainer.hpp:263:40: note: declared here
Error: COMPILER_WARNING (CWE-758): [#def7]
libdnf-0.74.0/build-py3/bindings/python/CMakeFiles/_repo.dir/repoPYTHON_wrap.cxx:3784:24: warning[-Wmissing-declarations]: no previous declaration for ‘PyObject* PyInit__repo()’
libdnf-0.74.0/build-py3/bindings/python/CMakeFiles/_repo.dir/repoPYTHON_wrap.cxx:17614:1: note: in expansion of macro ‘SWIG_init’
Error: COMPILER_WARNING (CWE-758): [#def8]
libdnf-0.74.0/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:3248:24: warning[-Wmissing-declarations]: no previous declaration for ‘PyObject* PyInit__smartcols()’
libdnf-0.74.0/build-py3/bindings/python/CMakeFiles/_smartcols.dir/smartcolsPYTHON_wrap.cxx:11785:1: note: in expansion of macro ‘SWIG_init’
Error: COMPILER_WARNING (CWE-758): [#def9]
libdnf-0.74.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:3279:24: warning[-Wmissing-declarations]: no previous declaration for ‘PyObject* PyInit__transaction()’
libdnf-0.74.0/build-py3/bindings/python/CMakeFiles/_transaction.dir/transactionPYTHON_wrap.cxx:20944:1: note: in expansion of macro ‘SWIG_init’
Error: COMPILER_WARNING (CWE-758): [#def10]
libdnf-0.74.0/build-py3/bindings/python/CMakeFiles/_utils.dir/utilsPYTHON_wrap.cxx:3741:24: warning[-Wmissing-declarations]: no previous declaration for ‘PyObject* PyInit__utils()’
libdnf-0.74.0/build-py3/bindings/python/CMakeFiles/_utils.dir/utilsPYTHON_wrap.cxx:7235:1: note: in expansion of macro ‘SWIG_init’
Error: COMPILER_WARNING (CWE-477): [#def11]
libdnf-0.74.0/libdnf/dnf-repo-loader.cpp: scope_hint: In function ‘gboolean dnf_repo_loader_get_repos_removable(DnfRepoLoader*, GError**)’
libdnf-0.74.0/libdnf/dnf-repo-loader.cpp:248:31: warning[-Wdeprecated-declarations]: ‘GList* g_unix_mounts_get(guint64*)’ is deprecated: Use 'g_unix_mount_entries_get' instead
libdnf-0.74.0/libdnf/dnf-repo-loader.cpp:36: included_from: Included from here.
/usr/include/gio-unix-2.0/gio/gunixmounts.h:199:16: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def12]
libdnf-0.74.0/libdnf/dnf-repo-loader.cpp:251:38: warning[-Wdeprecated-declarations]: ‘gboolean g_unix_mount_is_readonly(GUnixMountEntry*)’ is deprecated: Use 'g_unix_mount_entry_is_readonly' instead
/usr/include/gio-unix-2.0/gio/gunixmounts.h:125:16: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def13]
libdnf-0.74.0/libdnf/dnf-repo-loader.cpp:253:47: warning[-Wdeprecated-declarations]: ‘const char* g_unix_mount_get_fs_type(GUnixMountEntry*)’ is deprecated: Use 'g_unix_mount_entry_get_fs_type' instead
/usr/include/gio-unix-2.0/gio/gunixmounts.h:115:16: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def14]
libdnf-0.74.0/libdnf/dnf-repo-loader.cpp:256:78: warning[-Wdeprecated-declarations]: ‘const char* g_unix_mount_get_mount_path(GUnixMountEntry*)’ is deprecated: Use 'g_unix_mount_entry_get_mount_path' instead
/usr/include/gio-unix-2.0/gio/gunixmounts.h:100:16: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def15]
libdnf-0.74.0/libdnf/dnf-repo-loader.cpp:263:35: warning[-Wdeprecated-declarations]: ‘void g_unix_mount_free(GUnixMountEntry*)’ is deprecated: Use 'g_unix_mount_entry_free' instead
/usr/include/gio-unix-2.0/gio/gunixmounts.h:78:16: note: declared here
Error: CPPCHECK_WARNING (CWE-562): [#def16]
libdnf-0.74.0/libdnf/hy-iutil.cpp:548: error[returnDanglingLifetime]: Returning pointer to local variable 'dup' that will be invalid when returning.
Error: COMPILER_WARNING: [#def17]
libdnf-0.74.0/libdnf/hy-package.cpp:58:3: warning[-Wodr]: type ‘struct DnfPackagePrivate’ violates the C++ One Definition Rule
libdnf-0.74.0/libdnf/dnf-package.cpp:62:3: note: a different type is defined in another translation unit
libdnf-0.74.0/libdnf/hy-package.cpp:55:22: note: the first difference of corresponding definitions is field ‘loaded’
libdnf-0.74.0/libdnf/dnf-package.cpp:54:22: note: a field with different name is defined in another translation unit
Error: COMPILER_WARNING (CWE-252): [#def18]
libdnf-0.74.0/libdnf/utils/smartcols/Table.cpp: scope_hint: In member function ‘void Table::removeColumn(const std::shared_ptr<Column>&)’
libdnf-0.74.0/libdnf/utils/smartcols/Table.cpp:104:16: warning[-Wunused-result]: ignoring return value of ‘_FIter std::remove(_FIter, _FIter, const _Tp&) [with _FIter = __gnu_cxx::__normal_iterator<shared_ptr<Column>*, vector<shared_ptr<Column> > >; _Tp = shared_ptr<Column>]’, declared with attribute ‘nodiscard’
/usr/include/c++/15/algorithm:63: included_from: Included from here.
libdnf-0.74.0/libdnf/utils/tinyformat/tinyformat.hpp:144: included_from: Included from here.
libdnf-0.74.0/libdnf/utils/smartcols/Table.hpp:28: included_from: Included from here.
libdnf-0.74.0/libdnf/utils/smartcols/Table.cpp:21: included_from: Included from here.
/usr/include/c++/15/bits/stl_algo.h:772:5: note: declared here
Error: COMPILER_WARNING (CWE-252): [#def19]
libdnf-0.74.0/libdnf/utils/smartcols/Table.cpp: scope_hint: In member function ‘void Table::removeLine(const std::shared_ptr<Line>&)’
libdnf-0.74.0/libdnf/utils/smartcols/Table.cpp:116:16: warning[-Wunused-result]: ignoring return value of ‘_FIter std::remove(_FIter, _FIter, const _Tp&) [with _FIter = __gnu_cxx::__normal_iterator<shared_ptr<Line>*, vector<shared_ptr<Line> > >; _Tp = shared_ptr<Line>]’, declared with attribute ‘nodiscard’
/usr/include/c++/15/bits/stl_algo.h:772:5: note: declared here
Error: CPPCHECK_WARNING (CWE-398): [#def20]
libdnf-0.74.0/libdnf/utils/sqlite3/Sqlite3.hpp:337: error[throwInNoexceptFunction]: Exception thrown in function declared not to throw exceptions.
Error: COMPILER_WARNING (CWE-685): [#def21]
libdnf-0.74.0/tests/hawkey/test_suites.h:24: included_from: Included from here.
libdnf-0.74.0/tests/hawkey/test_goal.cpp:38: included_from: Included from here.
libdnf-0.74.0/tests/hawkey/test_goal.cpp: scope_hint: In function ‘DnfPackage* get_latest_pkg(DnfSack*, const char*)’
libdnf-0.74.0/tests/hawkey/test_goal.cpp:54:17: warning[-Wformat-extra-args]: too many arguments for format
libdnf-0.74.0/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]’
Error: COMPILER_WARNING (CWE-685): [#def22]
libdnf-0.74.0/tests/hawkey/test_goal.cpp:439:18: warning[-Wformat-extra-args]: too many arguments for format
Error: COMPILER_WARNING (CWE-685): [#def23]
libdnf-0.74.0/tests/hawkey/test_goal.cpp:449:32: warning[-Wformat-extra-args]: too many arguments for format
Error: COMPILER_WARNING (CWE-685): [#def24]
libdnf-0.74.0/tests/hawkey/test_goal.cpp:458:33: warning[-Wformat-extra-args]: too many arguments for format
libdnf-0.74.0/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]’
Error: CPPCHECK_WARNING (CWE-476): [#def25]
libdnf-0.74.0/tests/hawkey/test_iutil.cpp:42: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: fp
Error: CPPCHECK_WARNING (CWE-476): [#def26]
libdnf-0.74.0/tests/hawkey/test_iutil.cpp:43: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: fp
Error: CPPCHECK_WARNING (CWE-476): [#def27]
libdnf-0.74.0/tests/hawkey/test_iutil.cpp:129: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: fp
Error: CPPCHECK_WARNING (CWE-476): [#def28]
libdnf-0.74.0/tests/hawkey/test_sack.cpp:170: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: fp
Scan Properties
analyzer-version-clippy | 1.86.0 |
analyzer-version-cppcheck | 2.17.1 |
analyzer-version-gcc | 15.0.1 |
analyzer-version-gcc-analyzer | 15.0.1 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-105.us-west-2.compute.internal |
known-false-positives | /usr/share/csmock/known-false-positives.js |
known-false-positives-rpm | known-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch |
mock-config | fedora-rawhide-x86_64 |
project-name | libdnf-0.74.0-1.fc43 |
store-results-to | /tmp/tmp2y4md70c/libdnf-0.74.0-1.fc43.tar.xz |
time-created | 2025-04-25 14:05:34 |
time-finished | 2025-04-25 14:08:56 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmp2y4md70c/libdnf-0.74.0-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp2y4md70c/libdnf-0.74.0-1.fc43.src.rpm' |
tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |