dnf5-5.2.17.0-2.fc44
List of Findings
Error: CPPCHECK_WARNING (CWE-825): [#def1]
dnf5-5.2.17.0/dnf5/commands/history/transaction_id.cpp:96: error[derefInvalidIterator]: Dereference of an invalid iterator: trans_id_cache.end()
Error: CPPCHECK_WARNING (CWE-825): [#def2]
dnf5-5.2.17.0/dnf5/commands/history/transaction_id.cpp:107: error[derefInvalidIterator]: Dereference of an invalid iterator: trans_id_cache.end()
Error: CPPCHECK_WARNING (CWE-758): [#def3]
dnf5-5.2.17.0/dnf5daemon-server/transaction.cpp:31: error[missingReturn]: Found an exit path from function with non-void return type that has missing return statement
Error: CPPCHECK_WARNING (CWE-562): [#def4]
dnf5-5.2.17.0/libdnf5-cli/argument_parser.cpp:1442: error[returnDanglingLifetime]: Returning object that points to local variable 'arg' that will be invalid when returning.
Error: CPPCHECK_WARNING (CWE-562): [#def5]
dnf5-5.2.17.0/libdnf5-cli/argument_parser.cpp:1450: error[returnDanglingLifetime]: Returning object that points to local variable 'arg' that will be invalid when returning.
Error: CPPCHECK_WARNING (CWE-562): [#def6]
dnf5-5.2.17.0/libdnf5-cli/argument_parser.cpp:1457: error[returnDanglingLifetime]: Returning object that points to local variable 'arg' that will be invalid when returning.
Error: CPPCHECK_WARNING (CWE-562): [#def7]
dnf5-5.2.17.0/libdnf5-cli/argument_parser.cpp:1465: error[returnDanglingLifetime]: Returning object that points to local variable 'arg' that will be invalid when returning.
Error: CPPCHECK_WARNING (CWE-562): [#def8]
dnf5-5.2.17.0/libdnf5-cli/argument_parser.cpp:1476: error[returnDanglingLifetime]: Returning object that points to local variable 'arg' that will be invalid when returning.
Error: CPPCHECK_WARNING (CWE-562): [#def9]
dnf5-5.2.17.0/libdnf5-cli/argument_parser.cpp:1483: error[returnDanglingLifetime]: Returning object that points to local variable 'group' that will be invalid when returning.
Error: CPPCHECK_WARNING (CWE-758): [#def10]
dnf5-5.2.17.0/libdnf5-cli/argument_parser.cpp:1580: error[missingReturn]: Found an exit path from function with non-void return type that has missing return statement
Error: CPPCHECK_WARNING (CWE-909): [#def11]
dnf5-5.2.17.0/libdnf5/base/goal.cpp:3042: error[uninitStructMember]: Uninitialized struct member: group_replay.package_types
Error: CPPCHECK_WARNING (CWE-457): [#def12]
dnf5-5.2.17.0/libdnf5/base/goal.cpp:3042: error[uninitvar]: Uninitialized variable: group_replay.package_types
Error: CPPCHECK_WARNING (CWE-562): [#def13]
dnf5-5.2.17.0/libdnf5/repo/repo_sack.cpp:178: error[danglingLifetime]: Non-local variable 'p_impl->cmdline_repo' will use pointer to local variable 'repo'.
Error: CPPCHECK_WARNING (CWE-562): [#def14]
dnf5-5.2.17.0/libdnf5/repo/repo_sack.cpp:321: error[danglingLifetime]: Non-local variable 'p_impl->system_repo' will use pointer to local variable 'repo'.
Error: CPPCHECK_WARNING (CWE-909): [#def15]
dnf5-5.2.17.0/libdnf5/system/state.cpp:137: error[uninitStructMember]: Uninitialized struct member: group_state.package_types
Error: CPPCHECK_WARNING (CWE-457): [#def16]
dnf5-5.2.17.0/libdnf5/system/state.cpp:137: warning[uninitvar]: Uninitialized variable: group_state.package_types
Error: CPPCHECK_WARNING (CWE-457): [#def17]
dnf5-5.2.17.0/libdnf5/utils/fs/file.cpp:248: error[legacyUninitvar]: Uninitialized variable: length_to_end
Error: CPPCHECK_WARNING (CWE-398): [#def18]
dnf5-5.2.17.0/libdnf5/utils/sqlite3/sqlite3.hpp:328: error[throwInNoexceptFunction]: Exception thrown in function declared not to throw exceptions.
Error: CPPCHECK_WARNING (CWE-476): [#def19]
dnf5-5.2.17.0/redhat-linux-build/bindings/perl5/libdnf5/CMakeFiles/perl5_advisory.dir/advisoryPERL_wrap.cxx:1450: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mg->mg_virtual
Error: CPPCHECK_WARNING (CWE-476): [#def20]
dnf5-5.2.17.0/redhat-linux-build/bindings/perl5/libdnf5/CMakeFiles/perl5_common.dir/commonPERL_wrap.cxx:1450: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mg->mg_virtual
Error: CPPCHECK_WARNING (CWE-476): [#def21]
dnf5-5.2.17.0/redhat-linux-build/bindings/perl5/libdnf5/CMakeFiles/perl5_exception.dir/exceptionPERL_wrap.cxx:1450: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mg->mg_virtual
Error: CPPCHECK_WARNING (CWE-476): [#def22]
dnf5-5.2.17.0/redhat-linux-build/bindings/perl5/libdnf5/CMakeFiles/perl5_plugin.dir/pluginPERL_wrap.cxx:1451: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mg->mg_virtual
Error: CPPCHECK_WARNING (CWE-476): [#def23]
dnf5-5.2.17.0/redhat-linux-build/bindings/perl5/libdnf5/CMakeFiles/perl5_transaction.dir/transactionPERL_wrap.cxx:1450: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mg->mg_virtual
Error: CPPCHECK_WARNING (CWE-476): [#def24]
dnf5-5.2.17.0/redhat-linux-build/bindings/perl5/libdnf5/CMakeFiles/perl5_utils.dir/utilsPERL_wrap.cxx:1450: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mg->mg_virtual
Error: CPPCHECK_WARNING (CWE-476): [#def25]
dnf5-5.2.17.0/redhat-linux-build/bindings/perl5/libdnf5_cli/CMakeFiles/perl5_progressbar.dir/progressbarPERL_wrap.cxx:1450: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mg->mg_virtual
Error: CPPCHECK_WARNING (CWE-476): [#def26]
dnf5-5.2.17.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_advisory.dir/advisoryRUBY_wrap.cxx:1661: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: klass_name
Error: CPPCHECK_WARNING (CWE-476): [#def27]
dnf5-5.2.17.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_advisory.dir/advisoryRUBY_wrap.cxx:1719: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: klass_name
Error: CPPCHECK_WARNING (CWE-457): [#def28]
dnf5-5.2.17.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_advisory.dir/advisoryRUBY_wrap.cxx:2683: error[uninitvar]: Uninitialized variable: v
Error: CPPCHECK_WARNING (CWE-457): [#def29]
dnf5-5.2.17.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_advisory.dir/advisoryRUBY_wrap.cxx:2729: error[uninitvar]: Uninitialized variable: v
Error: CPPCHECK_WARNING (CWE-457): [#def30]
dnf5-5.2.17.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_advisory.dir/advisoryRUBY_wrap.cxx:2786: error[uninitvar]: Uninitialized variable: v
Error: CPPCHECK_WARNING (CWE-457): [#def31]
dnf5-5.2.17.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_advisory.dir/advisoryRUBY_wrap.cxx:2815: error[uninitvar]: Uninitialized variable: v
Error: CPPCHECK_WARNING (CWE-476): [#def32]
dnf5-5.2.17.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_comps.dir/compsRUBY_wrap.cxx:1662: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: klass_name
Error: CPPCHECK_WARNING (CWE-476): [#def33]
dnf5-5.2.17.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_comps.dir/compsRUBY_wrap.cxx:1720: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: klass_name
Error: CPPCHECK_WARNING (CWE-457): [#def34]
dnf5-5.2.17.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_comps.dir/compsRUBY_wrap.cxx:3123: error[uninitvar]: Uninitialized variable: v
Error: CPPCHECK_WARNING (CWE-457): [#def35]
dnf5-5.2.17.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_comps.dir/compsRUBY_wrap.cxx:3169: error[uninitvar]: Uninitialized variable: v
Error: CPPCHECK_WARNING (CWE-457): [#def36]
dnf5-5.2.17.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_comps.dir/compsRUBY_wrap.cxx:3226: error[uninitvar]: Uninitialized variable: v
Error: CPPCHECK_WARNING (CWE-457): [#def37]
dnf5-5.2.17.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_comps.dir/compsRUBY_wrap.cxx:3255: error[uninitvar]: Uninitialized variable: v
Error: CPPCHECK_WARNING (CWE-457): [#def38]
dnf5-5.2.17.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_comps.dir/compsRUBY_wrap.cxx:13704: error[legacyUninitvar]: Uninitialized variable: arg2
Error: CPPCHECK_WARNING (CWE-457): [#def39]
dnf5-5.2.17.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_comps.dir/compsRUBY_wrap.cxx:13755: error[legacyUninitvar]: Uninitialized variable: arg2
Error: CPPCHECK_WARNING (CWE-457): [#def40]
dnf5-5.2.17.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_comps.dir/compsRUBY_wrap.cxx:13814: error[legacyUninitvar]: Uninitialized variable: arg2
Error: CPPCHECK_WARNING (CWE-457): [#def41]
dnf5-5.2.17.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_comps.dir/compsRUBY_wrap.cxx:13865: error[legacyUninitvar]: Uninitialized variable: arg2
Error: CPPCHECK_WARNING (CWE-457): [#def42]
dnf5-5.2.17.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_comps.dir/compsRUBY_wrap.cxx:18761: error[legacyUninitvar]: Uninitialized variable: arg2
Error: CPPCHECK_WARNING (CWE-457): [#def43]
dnf5-5.2.17.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_comps.dir/compsRUBY_wrap.cxx:18812: error[legacyUninitvar]: Uninitialized variable: arg2
Error: CPPCHECK_WARNING (CWE-457): [#def44]
dnf5-5.2.17.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_comps.dir/compsRUBY_wrap.cxx:18871: error[legacyUninitvar]: Uninitialized variable: arg2
Error: CPPCHECK_WARNING (CWE-457): [#def45]
dnf5-5.2.17.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_comps.dir/compsRUBY_wrap.cxx:18922: error[legacyUninitvar]: Uninitialized variable: arg2
Error: CPPCHECK_WARNING (CWE-476): [#def46]
dnf5-5.2.17.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_exception.dir/exceptionRUBY_wrap.cxx:1661: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: klass_name
Error: CPPCHECK_WARNING (CWE-476): [#def47]
dnf5-5.2.17.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_exception.dir/exceptionRUBY_wrap.cxx:1719: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: klass_name
Error: CPPCHECK_WARNING (CWE-457): [#def48]
dnf5-5.2.17.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_exception.dir/exceptionRUBY_wrap.cxx:2212: error[uninitvar]: Uninitialized variable: v
Error: CPPCHECK_WARNING (CWE-476): [#def49]
dnf5-5.2.17.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_logger.dir/loggerRUBY_wrap.cxx:1662: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: klass_name
Error: CPPCHECK_WARNING (CWE-476): [#def50]
dnf5-5.2.17.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_logger.dir/loggerRUBY_wrap.cxx:1720: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: klass_name
Error: CPPCHECK_WARNING (CWE-457): [#def51]
dnf5-5.2.17.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_logger.dir/loggerRUBY_wrap.cxx:2574: error[uninitvar]: Uninitialized variable: v
Error: CPPCHECK_WARNING (CWE-457): [#def52]
dnf5-5.2.17.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_logger.dir/loggerRUBY_wrap.cxx:2756: error[uninitvar]: Uninitialized variable: v
Error: CPPCHECK_WARNING (CWE-457): [#def53]
dnf5-5.2.17.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_logger.dir/loggerRUBY_wrap.cxx:2787: error[uninitvar]: Uninitialized variable: v
Error: CPPCHECK_WARNING (CWE-476): [#def54]
dnf5-5.2.17.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:1662: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: klass_name
Error: CPPCHECK_WARNING (CWE-476): [#def55]
dnf5-5.2.17.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:1720: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: klass_name
Error: CPPCHECK_WARNING (CWE-457): [#def56]
dnf5-5.2.17.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_plugin.dir/pluginRUBY_wrap.cxx:2873: error[uninitvar]: Uninitialized variable: v
Error: CPPCHECK_WARNING (CWE-476): [#def57]
dnf5-5.2.17.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_transaction.dir/transactionRUBY_wrap.cxx:1661: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: klass_name
Error: CPPCHECK_WARNING (CWE-476): [#def58]
dnf5-5.2.17.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_transaction.dir/transactionRUBY_wrap.cxx:1719: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: klass_name
Error: CPPCHECK_WARNING (CWE-457): [#def59]
dnf5-5.2.17.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_transaction.dir/transactionRUBY_wrap.cxx:2685: error[uninitvar]: Uninitialized variable: v
Error: CPPCHECK_WARNING (CWE-457): [#def60]
dnf5-5.2.17.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_transaction.dir/transactionRUBY_wrap.cxx:2731: error[uninitvar]: Uninitialized variable: v
Error: CPPCHECK_WARNING (CWE-457): [#def61]
dnf5-5.2.17.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_transaction.dir/transactionRUBY_wrap.cxx:2788: error[uninitvar]: Uninitialized variable: v
Error: CPPCHECK_WARNING (CWE-457): [#def62]
dnf5-5.2.17.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_transaction.dir/transactionRUBY_wrap.cxx:2817: error[uninitvar]: Uninitialized variable: v
Error: CPPCHECK_WARNING (CWE-476): [#def63]
dnf5-5.2.17.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_utils.dir/utilsRUBY_wrap.cxx:1661: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: klass_name
Error: CPPCHECK_WARNING (CWE-476): [#def64]
dnf5-5.2.17.0/redhat-linux-build/bindings/ruby/libdnf5/CMakeFiles/ruby_utils.dir/utilsRUBY_wrap.cxx:1719: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: klass_name
Error: CPPCHECK_WARNING (CWE-476): [#def65]
dnf5-5.2.17.0/redhat-linux-build/bindings/ruby/libdnf5_cli/CMakeFiles/ruby_progressbar.dir/progressbarRUBY_wrap.cxx:1661: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: klass_name
Error: CPPCHECK_WARNING (CWE-476): [#def66]
dnf5-5.2.17.0/redhat-linux-build/bindings/ruby/libdnf5_cli/CMakeFiles/ruby_progressbar.dir/progressbarRUBY_wrap.cxx:1719: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: klass_name
Error: CPPCHECK_WARNING (CWE-457): [#def67]
dnf5-5.2.17.0/redhat-linux-build/bindings/ruby/libdnf5_cli/CMakeFiles/ruby_progressbar.dir/progressbarRUBY_wrap.cxx:2144: error[uninitvar]: Uninitialized variable: v
Error: CPPCHECK_WARNING (CWE-457): [#def68]
dnf5-5.2.17.0/redhat-linux-build/bindings/ruby/libdnf5_cli/CMakeFiles/ruby_progressbar.dir/progressbarRUBY_wrap.cxx:2353: error[uninitvar]: Uninitialized variable: v
Error: CPPCHECK_WARNING (CWE-457): [#def69]
dnf5-5.2.17.0/redhat-linux-build/bindings/ruby/libdnf5_cli/CMakeFiles/ruby_progressbar.dir/progressbarRUBY_wrap.cxx:2384: error[uninitvar]: Uninitialized variable: v
Error: CPPCHECK_WARNING (CWE-416): [#def70]
dnf5-5.2.17.0/test/libdnf5-cli/output/test_repoquery.cpp:52: error[deallocuse]: Dereferencing 'stream' after it is deallocated / released
Error: CPPCHECK_WARNING (CWE-416): [#def71]
dnf5-5.2.17.0/test/libdnf5/utils/test_fs.cpp:394: error[deallocuse]: Dereferencing 'file_p' after it is deallocated / released
Error: CPPCHECK_WARNING (CWE-562): [#def72]
dnf5-5.2.17.0/test/libdnf5/weak_ptr/test_weak_ptr.cpp:70: error[danglingTemporaryLifetime]: Using object that is a temporary.
Error: CPPCHECK_WARNING (CWE-562): [#def73]
dnf5-5.2.17.0/test/libdnf5/weak_ptr/test_weak_ptr.cpp:71: error[danglingTemporaryLifetime]: Using object that is a temporary.
Error: CPPCHECK_WARNING (CWE-562): [#def74]
dnf5-5.2.17.0/test/libdnf5/weak_ptr/test_weak_ptr.cpp:72: error[danglingTemporaryLifetime]: Using object that is a temporary.
Error: CPPCHECK_WARNING (CWE-562): [#def75]
dnf5-5.2.17.0/test/libdnf5/weak_ptr/test_weak_ptr.cpp:73: error[danglingTemporaryLifetime]: Using object that is a temporary.
Error: CPPCHECK_WARNING (CWE-398): [#def76]
dnf5-5.2.17.0/test/shared/base_test_case.cpp:112: warning[containerOutOfBounds]: Either the condition 'found.empty()' is redundant or expression 'found.begin()' causes access out of bounds.
Error: CPPCHECK_WARNING (CWE-398): [#def77]
dnf5-5.2.17.0/test/shared/base_test_case.cpp:133: warning[containerOutOfBounds]: Either the condition 'found.empty()' is redundant or expression 'found.begin()' causes access out of bounds.
Scan Properties
| analyzer-version-clippy | 1.90.0 |
| analyzer-version-cppcheck | 2.18.3 |
| analyzer-version-gcc | 15.2.1 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-29.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.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-gcc-latest-x86_64 |
| project-name | dnf5-5.2.17.0-2.fc44 |
| store-results-to | /tmp/tmp888nq9p1/dnf5-5.2.17.0-2.fc44.tar.xz |
| time-created | 2025-10-28 17:59:43 |
| time-finished | 2025-10-28 18:14:51 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmp888nq9p1/dnf5-5.2.17.0-2.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp888nq9p1/dnf5-5.2.17.0-2.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251027.143044.ge6b947b-1.el9 |