kf6-kwindowsystem-6.3.0-1.fc41

List of Defects

Error: COMPILER_WARNING (CWE-477): [#def1]
kf6-kwindowsystem-6.3.0-build/kwindowsystem-6.3.0/src/kkeyserver.cpp: scope_hint: In function ‘uint KKeyServer::getModsRequired(uint)’
kf6-kwindowsystem-6.3.0-build/kwindowsystem-6.3.0/src/kkeyserver.cpp:1339:36: warning[-Wdeprecated-declarations]: ‘KeySym XKeycodeToKeysym(Display*, KeyCode, int)’ is deprecated
# 1339 |         if (sym == XKeycodeToKeysym(QX11Info::display(), code, 0)) {
#      |                    ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kf6-kwindowsystem-6.3.0-build/kwindowsystem-6.3.0/src/kkeyserver.h:15: included_from: Included from here.
kf6-kwindowsystem-6.3.0-build/kwindowsystem-6.3.0/src/kkeyserver.cpp:10: included_from: Included from here.
/usr/include/X11/Xlib.h:1683:15: note: declared here
# 1683 | extern KeySym XKeycodeToKeysym(
#      |               ^~~~~~~~~~~~~~~~
# 1337|           //  can take precedence over the others, in case the modified
# 1338|           //  key produces the same symbol.
# 1339|->         if (sym == XKeycodeToKeysym(QX11Info::display(), code, 0)) {
# 1340|               ;
# 1341|           } else if (sym == XKeycodeToKeysym(QX11Info::display(), code, 1)) {

Error: COMPILER_WARNING (CWE-477): [#def2]
kf6-kwindowsystem-6.3.0-build/kwindowsystem-6.3.0/src/kkeyserver.cpp:1341:43: warning[-Wdeprecated-declarations]: ‘KeySym XKeycodeToKeysym(Display*, KeyCode, int)’ is deprecated
# 1341 |         } else if (sym == XKeycodeToKeysym(QX11Info::display(), code, 1)) {
#      |                           ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/X11/Xlib.h:1683:15: note: declared here
# 1683 | extern KeySym XKeycodeToKeysym(
#      |               ^~~~~~~~~~~~~~~~
# 1339|           if (sym == XKeycodeToKeysym(QX11Info::display(), code, 0)) {
# 1340|               ;
# 1341|->         } else if (sym == XKeycodeToKeysym(QX11Info::display(), code, 1)) {
# 1342|               mod = Qt::SHIFT;
# 1343|           } else if (sym == XKeycodeToKeysym(QX11Info::display(), code, 2)) {

Error: COMPILER_WARNING (CWE-477): [#def3]
kf6-kwindowsystem-6.3.0-build/kwindowsystem-6.3.0/src/kkeyserver.cpp:1343:43: warning[-Wdeprecated-declarations]: ‘KeySym XKeycodeToKeysym(Display*, KeyCode, int)’ is deprecated
# 1343 |         } else if (sym == XKeycodeToKeysym(QX11Info::display(), code, 2)) {
#      |                           ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/X11/Xlib.h:1683:15: note: declared here
# 1683 | extern KeySym XKeycodeToKeysym(
#      |               ^~~~~~~~~~~~~~~~
# 1341|           } else if (sym == XKeycodeToKeysym(QX11Info::display(), code, 1)) {
# 1342|               mod = Qt::SHIFT;
# 1343|->         } else if (sym == XKeycodeToKeysym(QX11Info::display(), code, 2)) {
# 1344|               mod = MODE_SWITCH;
# 1345|           } else if (sym == XKeycodeToKeysym(QX11Info::display(), code, 3)) {

Error: COMPILER_WARNING (CWE-477): [#def4]
kf6-kwindowsystem-6.3.0-build/kwindowsystem-6.3.0/src/kkeyserver.cpp:1345:43: warning[-Wdeprecated-declarations]: ‘KeySym XKeycodeToKeysym(Display*, KeyCode, int)’ is deprecated
# 1345 |         } else if (sym == XKeycodeToKeysym(QX11Info::display(), code, 3)) {
#      |                           ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/X11/Xlib.h:1683:15: note: declared here
# 1683 | extern KeySym XKeycodeToKeysym(
#      |               ^~~~~~~~~~~~~~~~
# 1343|           } else if (sym == XKeycodeToKeysym(QX11Info::display(), code, 2)) {
# 1344|               mod = MODE_SWITCH;
# 1345|->         } else if (sym == XKeycodeToKeysym(QX11Info::display(), code, 3)) {
# 1346|               mod = Qt::SHIFT | MODE_SWITCH;
# 1347|           }

Error: COMPILER_WARNING (CWE-477): [#def5]
kf6-kwindowsystem-6.3.0-build/kwindowsystem-6.3.0/src/kkeyserver.cpp: scope_hint: In function ‘bool KKeyServer::xEventToQt(XEvent*, int*)’
kf6-kwindowsystem-6.3.0-build/kwindowsystem-6.3.0/src/kkeyserver.cpp:1587:36: warning[-Wdeprecated-declarations]: ‘KeySym XKeycodeToKeysym(Display*, KeyCode, int)’ is deprecated
# 1587 |         uint sym = XKeycodeToKeysym(QX11Info::display(), keyCodeX, 0);
#      |                    ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/X11/Xlib.h:1683:15: note: declared here
# 1683 | extern KeySym XKeycodeToKeysym(
#      |               ^~~~~~~~~~~~~~~~
# 1585|       //  e.g., KP_4 => Shift+KP_Left, and Shift+KP_4 => KP_Left.
# 1586|       if (e->xkey.state & modXNumLock()) {
# 1587|->         uint sym = XKeycodeToKeysym(QX11Info::display(), keyCodeX, 0);
# 1588|           // TODO: what's the xor operator in c++?
# 1589|           // If this is a keypad key,

Error: CLANG_WARNING: [#def6]
kf6-kwindowsystem-6.3.0-build/kwindowsystem-6.3.0/src/kx11extras.cpp:531:9: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
#  529|               QMetaObject::invokeMethod(&instantiator, "createNETEventFilter", Qt::BlockingQueuedConnection, Q_RETURN_ARG(NETEventFilter *, filter));
#  530|           }
#  531|->         d.reset(filter);
#  532|           d->activate();
#  533|           if (wasCompositing != s_d_func()->compositingEnabled) {

Error: CLANG_WARNING: [#def7]
kf6-kwindowsystem-6.3.0-build/kwindowsystem-6.3.0/src/kx11extras.cpp:988:24: warning[cplusplus.NewDelete]: Use of memory after it is freed
#  986|   
#  987|       bool isDesktopSane = (desktop > 0 && desktop <= (int)s_d->numberOfDesktops());
#  988|->     const char *name = s_d->desktopName(isDesktopSane ? desktop : currentDesktop());
#  989|   
#  990|       if (name && name[0]) {

Error: COMPILER_WARNING: [#def8]
kf6-kwindowsystem-6.3.0-build/kwindowsystem-6.3.0/src/platforms/xcb/netwm.cpp: scope_hint: In member function ‘update’
kf6-kwindowsystem-6.3.0-build/kwindowsystem-6.3.0/src/platforms/xcb/netwm.cpp:2010:58: warning[-Walloc-size-larger-than=]: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807
# 2010 |             p->clients = new xcb_window_t[clients.count()];
#      |                                                          ^
/usr/include/c++/14/new:133:26: note: in a call to allocation function ‘operator new []’ declared here
#  133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
#      |                          ^
# 2008|           if (!clients.isEmpty()) {
# 2009|               p->clients_count = clients.count();
# 2010|->             p->clients = new xcb_window_t[clients.count()];
# 2011|               for (int i = 0; i < clients.count(); i++) {
# 2012|                   p->clients[i] = clients.at(i);

Error: COMPILER_WARNING: [#def9]
kf6-kwindowsystem-6.3.0-build/kwindowsystem-6.3.0/src/platforms/xcb/netwm.cpp:2039:56: warning[-Walloc-size-larger-than=]: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807
# 2039 |             p->stacking = new xcb_window_t[wins.count()];
#      |                                                        ^
/usr/include/c++/14/new:133:26: note: in a call to allocation function ‘operator new []’ declared here
#  133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
#      |                          ^
# 2037|           if (!wins.isEmpty()) {
# 2038|               p->stacking_count = wins.count();
# 2039|->             p->stacking = new xcb_window_t[wins.count()];
# 2040|               for (int i = 0; i < wins.count(); i++) {
# 2041|                   p->stacking[i] = wins.at(i);

Error: COMPILER_WARNING: [#def10]
kf6-kwindowsystem-6.3.0-build/kwindowsystem-6.3.0/src/platforms/xcb/netwm.cpp:2172:61: warning[-Walloc-size-larger-than=]: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807
# 2172 |             p->virtual_roots = new xcb_window_t[wins.count()];
#      |                                                             ^
/usr/include/c++/14/new:133:26: note: in a call to allocation function ‘operator new []’ declared here
#  133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
#      |                          ^
# 2170|           if (!wins.isEmpty()) {
# 2171|               p->virtual_roots_count = wins.count();
# 2172|->             p->virtual_roots = new xcb_window_t[wins.count()];
# 2173|               for (int i = 0; i < wins.count(); i++) {
# 2174|                   p->virtual_roots[i] = wins.at(i);

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-namekf6-kwindowsystem-6.3.0-1.fc41
store-results-to/tmp/tmpyhlt1hxd/kf6-kwindowsystem-6.3.0-1.fc41.tar.xz
time-created2024-07-03 14:23:53
time-finished2024-07-03 14:26:25
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpyhlt1hxd/kf6-kwindowsystem-6.3.0-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpyhlt1hxd/kf6-kwindowsystem-6.3.0-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9