plasma-discover-6.2.3-2.fc42

List of Findings

Error: COMPILER_WARNING (CWE-563): [#def1]
plasma-discover-6.2.3-build/discover-6.2.3/libdiscover/backends/FlatpakBackend/FlatpakBackend.cpp: scope_hint: In member function ‘FlatpakRemote* FlatpakBackend::installSource(FlatpakResource*)’
plasma-discover-6.2.3-build/discover-6.2.3/libdiscover/backends/FlatpakBackend/FlatpakBackend.cpp:1952:14: warning[-Wunused-variable]: unused variable ‘remote’
# 1952 |     if (auto remote = flatpak_installation_get_remote_by_name(preferredInstallation(), resource->flatpakName().toUtf8().constData(), cancellable, nullptr)) {
#      |              ^~~~~~
# 1950|       g_autoptr(GCancellable) cancellable = g_cancellable_new();
# 1951|   
# 1952|->     if (auto remote = flatpak_installation_get_remote_by_name(preferredInstallation(), resource->flatpakName().toUtf8().constData(), cancellable, nullptr)) {
# 1953|           qCWarning(LIBDISCOVER_BACKEND_FLATPAK_LOG) << "Source" << resource->flatpakName() << "already exists in"
# 1954|                                                      << flatpak_installation_get_path(preferredInstallation());

Error: COMPILER_WARNING (CWE-457): [#def2]
plasma-discover-6.2.3-build/discover-6.2.3/libdiscover/backends/PackageKitBackend/PackageKitBackend.cpp: scope_hint: In member function ‘PackageKitBackend::aboutTo(AbstractResourcesBackend::AboutToAction)’
plasma-discover-6.2.3-build/discover-6.2.3/libdiscover/backends/PackageKitBackend/PackageKitBackend.cpp:1215:38: warning[-Wmaybe-uninitialized]: ‘packageKitAction’ may be used uninitialized
# 1215 |     m_updater->setOfflineUpdateAction(packageKitAction);
#      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
plasma-discover-6.2.3-build/discover-6.2.3/libdiscover/backends/PackageKitBackend/PackageKitBackend.cpp:1206:33: note: ‘packageKitAction’ was declared here
# 1206 |     PackageKit::Offline::Action packageKitAction;
#      |                                 ^~~~~~~~~~~~~~~~
# 1213|           break;
# 1214|       }
# 1215|->     m_updater->setOfflineUpdateAction(packageKitAction);
# 1216|   }
# 1217|   

Error: COMPILER_WARNING (CWE-457): [#def3]
plasma-discover-6.2.3-build/discover-6.2.3/libdiscover/backends/PackageKitBackend/PackageKitUpdater.cpp:921:27: warning[-Wmaybe-uninitialized]: ‘packageKitAction’ may be used uninitialized
#  921 |     m_offlineUpdateAction = action;
#      |                           ^
plasma-discover-6.2.3-build/discover-6.2.3/libdiscover/backends/PackageKitBackend/PackageKitBackend.cpp: scope_hint: In member function ‘aboutTo’
plasma-discover-6.2.3-build/discover-6.2.3/libdiscover/backends/PackageKitBackend/PackageKitBackend.cpp:1206:33: note: ‘packageKitAction’ was declared here
# 1206 |     PackageKit::Offline::Action packageKitAction;
#      |                                 ^
#  919|   void PackageKitUpdater::setOfflineUpdateAction(PackageKit::Offline::Action action)
#  920|   {
#  921|->     m_offlineUpdateAction = action;
#  922|       if (PackageKit::Daemon::global()->offline()->updateTriggered()) {
#  923|           PackageKit::Daemon::global()->offline()->trigger(action);

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-56.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-nameplasma-discover-6.2.3-2.fc42
store-results-to/tmp/tmptbqvc6wa/plasma-discover-6.2.3-2.fc42.tar.xz
time-created2024-11-13 02:26:48
time-finished2024-11-13 02:31:01
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmptbqvc6wa/plasma-discover-6.2.3-2.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmptbqvc6wa/plasma-discover-6.2.3-2.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9