kf6-kwindowsystem-6.13.0-1.fc43

List of Findings

Error: COMPILER_WARNING (CWE-477): [#def1]
kwindowsystem-6.13.0/src/kkeyserver.cpp: scope_hint: In function ‘uint KKeyServer::getModsRequired(uint)’
kwindowsystem-6.13.0/src/kkeyserver.cpp:1339:36: warning[-Wdeprecated-declarations]: ‘KeySym XKeycodeToKeysym(Display*, KeyCode, int)’ is deprecated
# 1339 |         if (sym == XKeycodeToKeysym(QX11Info::display(), code, 0)) {
#      |                    ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kwindowsystem-6.13.0/src/kkeyserver.h:15: included_from: Included from here.
kwindowsystem-6.13.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]
kwindowsystem-6.13.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]
kwindowsystem-6.13.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]
kwindowsystem-6.13.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]
kwindowsystem-6.13.0/src/kkeyserver.cpp: scope_hint: In function ‘bool KKeyServer::xEventToQt(XEvent*, int*)’
kwindowsystem-6.13.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]
kwindowsystem-6.13.0/src/platforms/xcb/netwm.cpp: scope_hint: In member function ‘setDesktopViewport’
kwindowsystem-6.13.0/src/platforms/xcb/netwm.cpp:770:40: warning[-Walloc-size-larger-than=]: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807
#  770 |         uint32_t *data = new uint32_t[l];
#      |                                        ^
/usr/include/c++/15/new:140:26: note: in a call to allocation function ‘operator new []’ declared here
#  140 | _GLIBCXX_NODISCARD void* operator new[](std::size_t)
#      |                          ^
#  768|           int l;
#  769|           l = p->number_of_desktops * 2;
#  770|->         uint32_t *data = new uint32_t[l];
#  771|           for (d = 0, i = 0; d < p->number_of_desktops; d++) {
#  772|               data[i++] = p->viewport[d].x;

Error: COMPILER_WARNING: [#def7]
kwindowsystem-6.13.0/src/platforms/xcb/netwm.cpp: scope_hint: In member function ‘setWorkArea’
kwindowsystem-6.13.0/src/platforms/xcb/netwm.cpp:1495:58: warning[-Walloc-size-larger-than=]: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807
# 1495 |     uint32_t *wa = new uint32_t[p->number_of_desktops * 4];
#      |                                                          ^
/usr/include/c++/15/new:140:26: note: in a call to allocation function ‘operator new []’ declared here
#  140 | _GLIBCXX_NODISCARD void* operator new[](std::size_t)
#      |                          ^
# 1493|       p->workarea[desktop - 1] = workarea;
# 1494|   
# 1495|->     uint32_t *wa = new uint32_t[p->number_of_desktops * 4];
# 1496|       int i;
# 1497|       int o;

Error: COMPILER_WARNING: [#def8]
kwindowsystem-6.13.0/src/platforms/xcb/netwm.cpp: scope_hint: In member function ‘update’
kwindowsystem-6.13.0/src/platforms/xcb/netwm.cpp:2017:58: warning[-Walloc-size-larger-than=]: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807
# 2017 |             p->clients = new xcb_window_t[clients.count()];
#      |                                                          ^
/usr/include/c++/15/new:140:26: note: in a call to allocation function ‘operator new []’ declared here
#  140 | _GLIBCXX_NODISCARD void* operator new[](std::size_t)
#      |                          ^
# 2015|           if (!clients.isEmpty()) {
# 2016|               p->clients_count = clients.count();
# 2017|->             p->clients = new xcb_window_t[clients.count()];
# 2018|               for (int i = 0; i < clients.count(); i++) {
# 2019|                   p->clients[i] = clients.at(i);

Error: COMPILER_WARNING: [#def9]
kwindowsystem-6.13.0/src/platforms/xcb/netwm.cpp:2046:56: warning[-Walloc-size-larger-than=]: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807
# 2046 |             p->stacking = new xcb_window_t[wins.count()];
#      |                                                        ^
/usr/include/c++/15/new:140:26: note: in a call to allocation function ‘operator new []’ declared here
#  140 | _GLIBCXX_NODISCARD void* operator new[](std::size_t)
#      |                          ^
# 2044|           if (!wins.isEmpty()) {
# 2045|               p->stacking_count = wins.count();
# 2046|->             p->stacking = new xcb_window_t[wins.count()];
# 2047|               for (int i = 0; i < wins.count(); i++) {
# 2048|                   p->stacking[i] = wins.at(i);

Error: COMPILER_WARNING: [#def10]
kwindowsystem-6.13.0/src/platforms/xcb/netwm.cpp:2179:61: warning[-Walloc-size-larger-than=]: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807
# 2179 |             p->virtual_roots = new xcb_window_t[wins.count()];
#      |                                                             ^
/usr/include/c++/15/new:140:26: note: in a call to allocation function ‘operator new []’ declared here
#  140 | _GLIBCXX_NODISCARD void* operator new[](std::size_t)
#      |                          ^
# 2177|           if (!wins.isEmpty()) {
# 2178|               p->virtual_roots_count = wins.count();
# 2179|->             p->virtual_roots = new xcb_window_t[wins.count()];
# 2180|               for (int i = 0; i < wins.count(); i++) {
# 2181|                   p->virtual_roots[i] = wins.at(i);

Error: COMPILER_WARNING: [#def11]
kwindowsystem-6.13.0/src/platforms/xcb/netwm.cpp: scope_hint: In member function ‘iconSizes’
kwindowsystem-6.13.0/src/platforms/xcb/netwm.cpp:3516:54: warning[-Walloc-size-larger-than=]: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807
# 3516 |         p->icon_sizes = new int[p->icon_count * 2 + 2];
#      |                                                      ^
/usr/include/c++/15/new:140:26: note: in a call to allocation function ‘operator new []’ declared here
#  140 | _GLIBCXX_NODISCARD void* operator new[](std::size_t)
#      |                          ^
# 3514|   {
# 3515|       if (p->icon_sizes == nullptr) {
# 3516|->         p->icon_sizes = new int[p->icon_count * 2 + 2];
# 3517|           for (int i = 0; i < p->icon_count; ++i) {
# 3518|               p->icon_sizes[i * 2] = p->icons[i].size.width;

Scan Properties

analyzer-version-clippy1.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-21.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namekf6-kwindowsystem-6.13.0-1.fc43
store-results-to/tmp/tmp1tdyp5jo/kf6-kwindowsystem-6.13.0-1.fc43.tar.xz
time-created2025-04-25 13:40:01
time-finished2025-04-25 13:42:17
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmp1tdyp5jo/kf6-kwindowsystem-6.13.0-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp1tdyp5jo/kf6-kwindowsystem-6.13.0-1.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9