kf5-knewstuff-5.116.0-1.fc41

List of Defects

Error: COMPILER_WARNING (CWE-252): [#def1]
kf5-knewstuff-5.116.0-build/knewstuff-5.116.0/src/core/engine.cpp: scope_hint: In member function ‘void KNSCore::Engine::checkForInstalled()’
kf5-knewstuff-5.116.0-build/knewstuff-5.116.0/src/core/engine.cpp:1039:19: warning[-Wunused-result]: ignoring return value of ‘_FIter std::remove_if(_FIter, _FIter, _Predicate) [with _FIter = QList<KNSCore::EntryInternal>::iterator; _Predicate = KNSCore::Engine::checkForInstalled()::<lambda(const auto:28&)>]’, declared with attribute ‘nodiscard’
# 1039 |     std::remove_if(entries.begin(), entries.end(), [](const auto &entry) {
#      |     ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1040 |         return entry.status() != KNS3::Entry::Installed && entry.status() != KNS3::Entry::Updateable;
#      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1041 |     });
#      |     ~~             
/usr/include/c++/14/algorithm:61: included_from: Included from here.
/usr/include/qt5/QtCore/qglobal.h:142: included_from: Included from here.
/usr/include/qt5/QtCore/qchar.h:43: included_from: Included from here.
/usr/include/qt5/QtCore/qhash.h:44: included_from: Included from here.
/usr/include/qt5/QtCore/QHash:1: included_from: Included from here.
kf5-knewstuff-5.116.0-build/knewstuff-5.116.0/src/core/engine.h:13: included_from: Included from here.
kf5-knewstuff-5.116.0-build/knewstuff-5.116.0/src/core/engine.cpp:11: included_from: Included from here.
/usr/include/c++/14/bits/stl_algo.h:822:5: note: declared here
#  822 |     remove_if(_ForwardIterator __first, _ForwardIterator __last,
#      |     ^~~~~~~~~
# 1037|   {
# 1038|       EntryInternal::List entries = m_cache->registry();
# 1039|->     std::remove_if(entries.begin(), entries.end(), [](const auto &entry) {
# 1040|           return entry.status() != KNS3::Entry::Installed && entry.status() != KNS3::Entry::Updateable;
# 1041|       });

Error: CLANG_WARNING: [#def2]
kf5-knewstuff-5.116.0-build/knewstuff-5.116.0/src/qtquick/quickengine.cpp:139:33: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'wrappedEntry'
#  137|                               // this would cause the KCMs to reload their view unnecessarily, BUG: 431568
#  138|                               if (entry.status() == KNS3::Entry::Installing || entry.status() == KNS3::Entry::Updating) {
#  139|->                                 return;
#  140|                               }
#  141|                               Q_EMIT entryEvent(wrappedEntry, (EntryEvent)event);

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-131.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namekf5-knewstuff-5.116.0-1.fc41
store-results-to/tmp/tmpb0f2ttox/kf5-knewstuff-5.116.0-1.fc41.tar.xz
time-created2024-07-03 13:51:28
time-finished2024-07-03 13:53:54
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpb0f2ttox/kf5-knewstuff-5.116.0-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpb0f2ttox/kf5-knewstuff-5.116.0-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9