Fixed findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1]
qt6-qtbase-6.7.2-build/qtbase-everywhere-src-6.7.2/src/3rdparty/xcb/libxcb/xinput.c: scope_hint: In function ‘xcb_input_input_info_info_serialize’
qt6-qtbase-6.7.2-build/qtbase-everywhere-src-6.7.2/src/3rdparty/xcb/libxcb/xinput.c:498:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xcb_tmp’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  496|       for(i=0; i<xcb_parts_idx; i++) {
#  497|           if (0 != xcb_parts[i].iov_base && 0 != xcb_parts[i].iov_len)
#  498|->             memcpy(xcb_tmp, xcb_parts[i].iov_base, xcb_parts[i].iov_len);
#  499|           if (0 != xcb_parts[i].iov_len)
#  500|               xcb_tmp += xcb_parts[i].iov_len;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def2]
qt6-qtbase-6.7.2-build/qtbase-everywhere-src-6.7.2/src/3rdparty/xcb/libxcb/xinput.c: scope_hint: In function ‘xcb_input_feedback_state_data_serialize’
qt6-qtbase-6.7.2-build/qtbase-everywhere-src-6.7.2/src/3rdparty/xcb/libxcb/xinput.c:3304:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xcb_tmp’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 3302|       for(i=0; i<xcb_parts_idx; i++) {
# 3303|           if (0 != xcb_parts[i].iov_base && 0 != xcb_parts[i].iov_len)
# 3304|->             memcpy(xcb_tmp, xcb_parts[i].iov_base, xcb_parts[i].iov_len);
# 3305|           if (0 != xcb_parts[i].iov_len)
# 3306|               xcb_tmp += xcb_parts[i].iov_len;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def3]
qt6-qtbase-6.7.2-build/qtbase-everywhere-src-6.7.2/src/3rdparty/xcb/libxcb/xinput.c: scope_hint: In function ‘xcb_input_feedback_ctl_data_serialize’
qt6-qtbase-6.7.2-build/qtbase-everywhere-src-6.7.2/src/3rdparty/xcb/libxcb/xinput.c:4053:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xcb_tmp’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 4051|       for(i=0; i<xcb_parts_idx; i++) {
# 4052|           if (0 != xcb_parts[i].iov_base && 0 != xcb_parts[i].iov_len)
# 4053|->             memcpy(xcb_tmp, xcb_parts[i].iov_base, xcb_parts[i].iov_len);
# 4054|           if (0 != xcb_parts[i].iov_len)
# 4055|               xcb_tmp += xcb_parts[i].iov_len;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def4]
qt6-qtbase-6.7.2-build/qtbase-everywhere-src-6.7.2/src/3rdparty/xcb/libxcb/xinput.c: scope_hint: In function ‘xcb_input_input_state_data_serialize’
qt6-qtbase-6.7.2-build/qtbase-everywhere-src-6.7.2/src/3rdparty/xcb/libxcb/xinput.c:5353:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xcb_tmp’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 5351|       for(i=0; i<xcb_parts_idx; i++) {
# 5352|           if (0 != xcb_parts[i].iov_base && 0 != xcb_parts[i].iov_len)
# 5353|->             memcpy(xcb_tmp, xcb_parts[i].iov_base, xcb_parts[i].iov_len);
# 5354|           if (0 != xcb_parts[i].iov_len)
# 5355|               xcb_tmp += xcb_parts[i].iov_len;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def5]
qt6-qtbase-6.7.2-build/qtbase-everywhere-src-6.7.2/src/3rdparty/xcb/libxcb/xinput.c: scope_hint: In function ‘xcb_input_change_device_property_items_serialize’
qt6-qtbase-6.7.2-build/qtbase-everywhere-src-6.7.2/src/3rdparty/xcb/libxcb/xinput.c:7691:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xcb_tmp’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 7689|       for(i=0; i<xcb_parts_idx; i++) {
# 7690|           if (0 != xcb_parts[i].iov_base && 0 != xcb_parts[i].iov_len)
# 7691|->             memcpy(xcb_tmp, xcb_parts[i].iov_base, xcb_parts[i].iov_len);
# 7692|           if (0 != xcb_parts[i].iov_len)
# 7693|               xcb_tmp += xcb_parts[i].iov_len;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def6]
qt6-qtbase-6.7.2-build/qtbase-everywhere-src-6.7.2/src/3rdparty/xcb/libxcb/xinput.c: scope_hint: In function ‘xcb_input_get_device_property_items_serialize’
qt6-qtbase-6.7.2-build/qtbase-everywhere-src-6.7.2/src/3rdparty/xcb/libxcb/xinput.c:8263:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xcb_tmp’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 8261|       for(i=0; i<xcb_parts_idx; i++) {
# 8262|           if (0 != xcb_parts[i].iov_base && 0 != xcb_parts[i].iov_len)
# 8263|->             memcpy(xcb_tmp, xcb_parts[i].iov_base, xcb_parts[i].iov_len);
# 8264|           if (0 != xcb_parts[i].iov_len)
# 8265|               xcb_tmp += xcb_parts[i].iov_len;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def7]
qt6-qtbase-6.7.2-build/qtbase-everywhere-src-6.7.2/src/3rdparty/xcb/libxcb/xinput.c: scope_hint: In function ‘xcb_input_hierarchy_change_data_serialize’
qt6-qtbase-6.7.2-build/qtbase-everywhere-src-6.7.2/src/3rdparty/xcb/libxcb/xinput.c:9108:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xcb_tmp’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 9106|       for(i=0; i<xcb_parts_idx; i++) {
# 9107|           if (0 != xcb_parts[i].iov_base && 0 != xcb_parts[i].iov_len)
# 9108|->             memcpy(xcb_tmp, xcb_parts[i].iov_base, xcb_parts[i].iov_len);
# 9109|           if (0 != xcb_parts[i].iov_len)
# 9110|               xcb_tmp += xcb_parts[i].iov_len;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def8]
qt6-qtbase-6.7.2-build/qtbase-everywhere-src-6.7.2/src/3rdparty/xcb/libxcb/xinput.c: scope_hint: In function ‘xcb_input_device_class_data_serialize’
qt6-qtbase-6.7.2-build/qtbase-everywhere-src-6.7.2/src/3rdparty/xcb/libxcb/xinput.c:10385:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xcb_tmp’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#10383|       for(i=0; i<xcb_parts_idx; i++) {
#10384|           if (0 != xcb_parts[i].iov_base && 0 != xcb_parts[i].iov_len)
#10385|->             memcpy(xcb_tmp, xcb_parts[i].iov_base, xcb_parts[i].iov_len);
#10386|           if (0 != xcb_parts[i].iov_len)
#10387|               xcb_tmp += xcb_parts[i].iov_len;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def9]
qt6-qtbase-6.7.2-build/qtbase-everywhere-src-6.7.2/src/3rdparty/xcb/libxcb/xinput.c: scope_hint: In function ‘xcb_input_xi_change_property_items_serialize’
qt6-qtbase-6.7.2-build/qtbase-everywhere-src-6.7.2/src/3rdparty/xcb/libxcb/xinput.c:11885:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xcb_tmp’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#11883|       for(i=0; i<xcb_parts_idx; i++) {
#11884|           if (0 != xcb_parts[i].iov_base && 0 != xcb_parts[i].iov_len)
#11885|->             memcpy(xcb_tmp, xcb_parts[i].iov_base, xcb_parts[i].iov_len);
#11886|           if (0 != xcb_parts[i].iov_len)
#11887|               xcb_tmp += xcb_parts[i].iov_len;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def10]
qt6-qtbase-6.7.2-build/qtbase-everywhere-src-6.7.2/src/3rdparty/xcb/libxcb/xinput.c: scope_hint: In function ‘xcb_input_xi_get_property_items_serialize’
qt6-qtbase-6.7.2-build/qtbase-everywhere-src-6.7.2/src/3rdparty/xcb/libxcb/xinput.c:12453:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘xcb_tmp’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#12451|       for(i=0; i<xcb_parts_idx; i++) {
#12452|           if (0 != xcb_parts[i].iov_base && 0 != xcb_parts[i].iov_len)
#12453|->             memcpy(xcb_tmp, xcb_parts[i].iov_base, xcb_parts[i].iov_len);
#12454|           if (0 != xcb_parts[i].iov_len)
#12455|               xcb_tmp += xcb_parts[i].iov_len;

Error: COMPILER_WARNING (CWE-477): [#def11]
qt6-qtbase-6.7.2-build/qtbase-everywhere-src-6.7.2/src/gui/accessible/linux/dbusconnection.cpp: scope_hint: In lambda function
qt6-qtbase-6.7.2-build/qtbase-everywhere-src-6.7.2/src/gui/accessible/linux/dbusconnection.cpp:63:75: warning[-Wdeprecated-declarations]: ‘bool QString::operator==(const char*) const’ is deprecated: Use fromUtf8, QStringLiteral, or QLatin1StringView
#   63 |         if (interface_name == OrgA11yStatusInterface::staticInterfaceName())
#      |                                                                           ^
qt6-qtbase-6.7.2-build/qtbase-everywhere-src-6.7.2/redhat-linux-build/include/QtCore/qstring.h:1: included_from: Included from here.
qt6-qtbase-6.7.2-build/qtbase-everywhere-src-6.7.2/src/corelib/kernel/qcoreapplication.h:8: included_from: Included from here.
qt6-qtbase-6.7.2-build/qtbase-everywhere-src-6.7.2/redhat-linux-build/include/QtCore/qcoreapplication.h:1: included_from: Included from here.
qt6-qtbase-6.7.2-build/qtbase-everywhere-src-6.7.2/src/corelib/global/qt_pch.h:30: included_from: Included from here.
qt6-qtbase-6.7.2-build/qtbase-everywhere-src-6.7.2/src/gui/kernel/qt_gui_pch.h:12: included_from: Included from here.
qt6-qtbase-6.7.2-build/qtbase-everywhere-src-6.7.2/redhat-linux-build/src/gui/CMakeFiles/Gui.dir/cmake_pch.hxx:5: included_from: Included from here.
<command-line>: included_from: Included from here.
qt6-qtbase-6.7.2-build/qtbase-everywhere-src-6.7.2/src/corelib/text/qstring.h:1300:6: note: declared here
# 1300 | bool QString::operator==(const char *s) const
#      |      ^~~~~~~
#   61|       // Subscribe to updates about a11y enabled state.
#   62|       connect(dbusProperties, &OrgFreedesktopDBusPropertiesInterface::PropertiesChanged, this, [this](const QString &interface_name) {
#   63|->         if (interface_name == OrgA11yStatusInterface::staticInterfaceName())
#   64|               serviceRegistered();
#   65|       });

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
diffbase-analyzer-version-clippy1.82.0
diffbase-analyzer-version-cppcheck2.16.0
diffbase-analyzer-version-gcc14.2.1
diffbase-analyzer-version-gcc-analyzer15.0.0
diffbase-analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-61.us-west-2.compute.internal
diffbase-mock-configfedora-rawhide-gcc-latest-x86_64
diffbase-project-nameqt6-qtbase-6.8.0-4.fc42
diffbase-store-results-to/tmp/tmpymeypn5k/qt6-qtbase-6.8.0-4.fc42.tar.xz
diffbase-time-created2024-11-13 03:17:14
diffbase-time-finished2024-11-13 03:40:58
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpymeypn5k/qt6-qtbase-6.8.0-4.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpymeypn5k/qt6-qtbase-6.8.0-4.fc42.src.rpm'
diffbase-tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-61.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-nameqt6-qtbase-6.7.2-7.fc41
store-results-to/tmp/tmpwmtzw9_8/qt6-qtbase-6.7.2-7.fc41.tar.xz
time-created2024-11-13 02:53:13
time-finished2024-11-13 03:16:36
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpwmtzw9_8/qt6-qtbase-6.7.2-7.fc41.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpwmtzw9_8/qt6-qtbase-6.7.2-7.fc41.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9