kf6-kwindowsystem-6.8.0-1.fc42

List of Findings

Error: COMPILER_WARNING (CWE-477): [#def1]
kf6-kwindowsystem-6.8.0-build/kwindowsystem-6.8.0/src/kkeyserver.cpp: scope_hint: In function ‘uint KKeyServer::getModsRequired(uint)’
kf6-kwindowsystem-6.8.0-build/kwindowsystem-6.8.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.8.0-build/kwindowsystem-6.8.0/src/kkeyserver.h:15: included_from: Included from here.
kf6-kwindowsystem-6.8.0-build/kwindowsystem-6.8.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.8.0-build/kwindowsystem-6.8.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.8.0-build/kwindowsystem-6.8.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.8.0-build/kwindowsystem-6.8.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.8.0-build/kwindowsystem-6.8.0/src/kkeyserver.cpp: scope_hint: In function ‘bool KKeyServer::xEventToQt(XEvent*, int*)’
kf6-kwindowsystem-6.8.0-build/kwindowsystem-6.8.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: COMPILER_WARNING: [#def6]
kf6-kwindowsystem-6.8.0-build/kwindowsystem-6.8.0/src/platforms/xcb/netwm.cpp: scope_hint: In member function ‘update’
kf6-kwindowsystem-6.8.0-build/kwindowsystem-6.8.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: [#def7]
kf6-kwindowsystem-6.8.0-build/kwindowsystem-6.8.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: [#def8]
kf6-kwindowsystem-6.8.0-build/kwindowsystem-6.8.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-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-198.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namekf6-kwindowsystem-6.8.0-1.fc42
store-results-to/tmp/tmp5v2l1va5/kf6-kwindowsystem-6.8.0-1.fc42.tar.xz
time-created2024-11-13 00:59:23
time-finished2024-11-13 01:01:33
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp5v2l1va5/kf6-kwindowsystem-6.8.0-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp5v2l1va5/kf6-kwindowsystem-6.8.0-1.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9