kscreenlocker-6.1.1-1.fc41

List of Defects

Error: CLANG_WARNING: [#def1]
kscreenlocker-6.1.1-build/kscreenlocker-6.1.1/globalaccel.cpp:93:27: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'callWatcher'
#   91|       // go through all components, check whether they are in our whitelist
#   92|       // if they are whitelisted we check whether they are active
#   93|->     for (const auto &path : reply.value()) {
#   94|           const QString objectPath = path.path();
#   95|           bool whitelisted = false;

Error: CLANG_WARNING: [#def2]
kscreenlocker-6.1.1-build/kscreenlocker-6.1.1/globalaccel.cpp:145:9: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'callWatcher'
#  143|                   m_shortcuts.insert(objectPath, infos);
#  144|               });
#  145|->         });
#  146|       }
#  147|       m_updatingInformation--;

Error: CLANG_WARNING: [#def3]
kscreenlocker-6.1.1-build/kscreenlocker-6.1.1/greeter/pamauthenticator.cpp:176:9: warning[deadcode.DeadStores]: Value stored to 'rc' is never read
#  174|   
#  175|       if (rc == PAM_SUCCESS) {
#  176|->         rc = pam_setcred(m_handle, PAM_REFRESH_CRED);
#  177|           /* ignore errors on refresh credentials. If this did not work we use the old ones. */
#  178|           Q_EMIT succeeded();

Error: CLANG_WARNING: [#def4]
kscreenlocker-6.1.1-build/kscreenlocker-6.1.1/greeter/powermanagement.cpp:75:1: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'callWatcher'
#   73|           ((this)->*setter)(reply.value());
#   74|       });
#   75|-> }
#   76|   
#   77|   void PowerManagement::Private::setCanHibernate(bool set)

Error: CLANG_WARNING: [#def5]
kscreenlocker-6.1.1-build/kscreenlocker-6.1.1/logind.cpp:99:1: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'watcher'
#   97|   
#   98|       commonServiceRegistered(watcher);
#   99|-> }
#  100|   
#  101|   void LogindIntegration::consolekitServiceRegistered()

Error: CLANG_WARNING: [#def6]
kscreenlocker-6.1.1-build/kscreenlocker-6.1.1/logind.cpp:120:1: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'watcher'
#  118|   
#  119|       commonServiceRegistered(watcher);
#  120|-> }
#  121|   
#  122|   void LogindIntegration::commonServiceRegistered(QDBusPendingCallWatcher *watcher)

Error: CLANG_WARNING: [#def7]
kscreenlocker-6.1.1-build/kscreenlocker-6.1.1/powermanagement_inhibition.cpp:96:1: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'callWatcher'
#   94|           m_inhibited = reply.value();
#   95|       });
#   96|-> }
#   97|   
#   98|   #include "moc_powermanagement_inhibition.cpp"

Error: COMPILER_WARNING (CWE-909): [#def8]
kscreenlocker-6.1.1-build/kscreenlocker-6.1.1/waylandserver.cpp:142:5: warning[-Wmissing-field-initializers]: missing initializer for member ‘org_kde_ksld_interface::hibernateSystem’
#  140|                   }
#  141|               },
#  142|->     };
#  143|   
#  144|       wl_resource_set_implementation(resource, &s_interface, server, nullptr);

Error: COMPILER_WARNING (CWE-909): [#def9]
kscreenlocker-6.1.1-build/kscreenlocker-6.1.1/waylandserver.cpp: scope_hint: In static member function ‘static void ScreenLocker::WaylandServer::bind(wl_client*, void*, uint32_t, uint32_t)’
kscreenlocker-6.1.1-build/kscreenlocker-6.1.1/waylandserver.cpp:142:5: warning[-Wmissing-field-initializers]: missing initializer for member ‘org_kde_ksld_interface::suspendSystem’
#  142 |     };
#      |     ^
#  140|                   }
#  141|               },
#  142|->     };
#  143|   
#  144|       wl_resource_set_implementation(resource, &s_interface, server, nullptr);

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-31.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namekscreenlocker-6.1.1-1.fc41
store-results-to/tmp/tmpe1su8wpm/kscreenlocker-6.1.1-1.fc41.tar.xz
time-created2024-07-03 14:33:22
time-finished2024-07-03 14:35:28
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpe1su8wpm/kscreenlocker-6.1.1-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpe1su8wpm/kscreenlocker-6.1.1-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9