qt6-qtbase-6.8.0-4.fc42

List of Findings

Error: SHELLCHECK_WARNING (CWE-252): [#def1]
/usr/bin/qt-cmake:5:19: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
#    3|   # The directory of this script is the expanded absolute path of the "$qt_prefix/bin" directory.
#    4|   script_dir_path=`dirname $0`
#    5|-> script_dir_path=`(cd "$script_dir_path"; /bin/pwd)`
#    6|   
#    7|   # Try to use original cmake, otherwise to make it relocatable, use any cmake found in PATH.

Error: SHELLCHECK_WARNING (CWE-252): [#def2]
/usr/bin/qt-cmake-create:8:19: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
#    6|   # The directory of this script is the expanded absolute path of the "$qt_prefix/bin" directory.
#    7|   script_dir_path=`dirname $0`
#    8|-> script_dir_path=`(cd "$script_dir_path"; /bin/pwd)`
#    9|   
#   10|   # Try to use original cmake, otherwise to make it relocatable, use any cmake found in PATH.

Error: SHELLCHECK_WARNING (CWE-252): [#def3]
/usr/lib64/qt6/bin/qt-cmake:5:19: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
#    3|   # The directory of this script is the expanded absolute path of the "$qt_prefix/bin" directory.
#    4|   script_dir_path=`dirname $0`
#    5|-> script_dir_path=`(cd "$script_dir_path"; /bin/pwd)`
#    6|   
#    7|   # Try to use original cmake, otherwise to make it relocatable, use any cmake found in PATH.

Error: SHELLCHECK_WARNING (CWE-252): [#def4]
/usr/lib64/qt6/bin/qt-cmake-create:8:19: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
#    6|   # The directory of this script is the expanded absolute path of the "$qt_prefix/bin" directory.
#    7|   script_dir_path=`dirname $0`
#    8|-> script_dir_path=`(cd "$script_dir_path"; /bin/pwd)`
#    9|   
#   10|   # Try to use original cmake, otherwise to make it relocatable, use any cmake found in PATH.

Error: SHELLCHECK_WARNING (CWE-252): [#def5]
/usr/lib64/qt6/libexec/qt-cmake-private:5:19: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
#    3|   # The directory of this script is the expanded absolute path of the "$qt_prefix/bin" directory.
#    4|   script_dir_path=`dirname $0`
#    5|-> script_dir_path=`(cd "$script_dir_path"; /bin/pwd)`
#    6|   
#    7|   # Try to use original cmake, otherwise to make it relocatable, use any cmake found in PATH.

Error: SHELLCHECK_WARNING (CWE-138): [#def6]
/usr/lib64/qt6/libexec/qt-cmake-standalone-test:4:167: error[SC2145]: Argument mixes string and array. Use * or separate argument.
#    2|   
#    3|   SCRIPT_DIR=`dirname $0`
#    4|-> exec $SCRIPT_DIR/qt-cmake-private $SCRIPT_DIR/../../cmake/Qt6BuildInternals/QtStandaloneTestTemplateProject -DQT_BUILD_STANDALONE_TESTS=ON -DQT_STANDALONE_TEST_PATH="$@" -DPWD="$PWD"

Error: SHELLCHECK_WARNING (CWE-252): [#def7]
/usr/lib64/qt6/libexec/qt-internal-configure-examples:3:19: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
#    1|   #!/usr/bin/sh
#    2|   script_dir_path=`dirname $0`
#    3|-> script_dir_path=`(cd "$script_dir_path"; /bin/pwd)`
#    4|   
#    5|   "$script_dir_path/../bin/qt-cmake" -DQT_BUILD_STANDALONE_EXAMPLES=ON -DQT_BUILD_TESTS=OFF -DQT_USE_ORIGINAL_COMPILER=ON "$@"

Error: SHELLCHECK_WARNING (CWE-252): [#def8]
/usr/lib64/qt6/libexec/qt-internal-configure-tests:3:19: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
#    1|   #!/usr/bin/sh
#    2|   script_dir_path=`dirname $0`
#    3|-> script_dir_path=`(cd "$script_dir_path"; /bin/pwd)`
#    4|   
#    5|   "$script_dir_path/../bin/qt-cmake" -DQT_BUILD_STANDALONE_TESTS=ON -DQT_BUILD_EXAMPLES=OFF -DQT_USE_ORIGINAL_COMPILER=ON "$@"

Error: SHELLCHECK_WARNING (CWE-563): [#def9]
/usr/lib64/qt6/mkspecs/features/data/mac/objc_namespace.sh:36:18: warning[SC2034]: key appears unused. Verify use (or export if used externally).
#   34|   
#   35|   get_entry() {
#   36|->     local map=$1 key=$2
#   37|       local i="${map}_map_${2}"
#   38|       printf '%s' "${!i}"

Error: SHELLCHECK_WARNING (CWE-457): [#def10]
/usr/lib64/qt6/mkspecs/features/data/mac/objc_namespace.sh:56:42: warning[SC2154]: original_ld is referenced but not assigned.
#   54|   
#   55|   link_binary() {
#   56|->     (PS4=; test $silent -ne 1 && set -x; $original_ld "${linker_arguments[@]}" "$@") 2>&1 || exit 1
#   57|   }
#   58|   

Error: SHELLCHECK_WARNING (CWE-398): [#def11]
/usr/lib64/qt6/mkspecs/features/data/mac/objc_namespace.sh:138:9: warning[SC2178]: Variable was used as an array but is now assigned a string.
#  136|           fi
#  137|   
#  138|->         classname=$(get_entry address_to_classname $classname_address)
#  139|           if [ -z "$classname" ]; then
#  140|               echo " 💥  Failed to resolve class name for address '$classname_address'"

Error: SHELLCHECK_WARNING (CWE-670): [#def12]
/usr/lib64/qt6/mkspecs/features/data/mac/objc_namespace.sh:139:18: warning[SC2128]: Expanding an array without an index only gives the first element.
#  137|   
#  138|           classname=$(get_entry address_to_classname $classname_address)
#  139|->         if [ -z "$classname" ]; then
#  140|               echo " 💥  Failed to resolve class name for address '$classname_address'"
#  141|               continue

Error: SHELLCHECK_WARNING (CWE-457): [#def13]
/usr/lib64/qt6/mkspecs/features/data/mac/objc_namespace.sh:144:15: warning[SC2154]: exclude_list is referenced but not assigned.
#  142|           fi
#  143|   
#  144|->         if [[ $exclude_list =~ $classname || $classname =~ $exclude_regex ]]; then
#  145|               if [ $is_metaclass -eq 1 ]; then
#  146|                   class_type="meta class"

Error: SHELLCHECK_WARNING (CWE-457): [#def14]
/usr/lib64/qt6/mkspecs/features/data/mac/objc_namespace.sh:144:60: warning[SC2154]: exclude_regex is referenced but not assigned.
#  142|           fi
#  143|   
#  144|->         if [[ $exclude_list =~ $classname || $classname =~ $exclude_regex ]]; then
#  145|               if [ $is_metaclass -eq 1 ]; then
#  146|                   class_type="meta class"

Error: SHELLCHECK_WARNING (CWE-88): [#def15]
/usr/lib64/qt6/mkspecs/features/uikit/device_destinations.sh:8:51: error[SC2068]: Double quote array expansions to avoid re-splitting elements.
#    6|   scheme=$1
#    7|   shift
#    8|-> booted_simulator=$($DIR/devices.py --state booted $@ | tail -n 1)
#    9|   echo "SIMULATOR_DEVICES = $booted_simulator"
#   10|   

Error: SHELLCHECK_WARNING (CWE-477): [#def16]
/usr/lib64/qt6/mkspecs/features/uikit/device_destinations.sh:23:45: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
#   21|               if [ "$val" = "iOS" ]; then
#   22|                   echo "HARDWARE_DEVICES += $id"
#   23|->             elif [ "$val" = "iOS Simulator" -a "$id" != "$booted_simulator" ]; then
#   24|                   echo "SIMULATOR_DEVICES += $id"
#   25|               elif [ "$val" = "tvOS" ]; then

Error: SHELLCHECK_WARNING (CWE-477): [#def17]
/usr/lib64/qt6/mkspecs/features/uikit/device_destinations.sh:27:46: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
#   25|               elif [ "$val" = "tvOS" ]; then
#   26|                   echo "HARDWARE_DEVICES += $id"
#   27|->             elif [ "$val" = "tvOS Simulator" -a "$id" != "$booted_simulator" ]; then
#   28|                   echo "SIMULATOR_DEVICES += $id"
#   29|               elif [ "$val" = "watchOS" ]; then

Error: SHELLCHECK_WARNING (CWE-477): [#def18]
/usr/lib64/qt6/mkspecs/features/uikit/device_destinations.sh:31:49: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
#   29|               elif [ "$val" = "watchOS" ]; then
#   30|                   echo "HARDWARE_DEVICES += $id"
#   31|->             elif [ "$val" = "watchOS Simulator" -a "$id" != "$booted_simulator" ]; then
#   32|                   echo "SIMULATOR_DEVICES += $id"
#   33|               fi

Error: COMPILER_WARNING (CWE-563): [#def19]
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/config.tests/x86_simd/main.cpp: scope_hint: In function ‘void test_avx512vbmi2()’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/config.tests/x86_simd/main.cpp:20:13: warning[-Wunused-variable]: unused variable ‘b’
#   20 |     __m128i b = _mm_shrdi_epi32(a, a, 7);
#      |             ^
#   18|       /* AVX512 Vector Byte Manipulation Instructions 2 */
#   19|       __m128i a = _mm_maskz_compress_epi16(-1, _mm_set1_epi16(1));
#   20|->     __m128i b = _mm_shrdi_epi32(a, a, 7);
#   21|   }
#   22|   #endif

Error: COMPILER_WARNING (CWE-563): [#def20]
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/config.tests/x86_simd/main.cpp: scope_hint: In function ‘void test_vaes()’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/config.tests/x86_simd/main.cpp:31:13: warning[-Wunused-variable]: unused variable ‘c’
#   31 |     __m256i c = _mm256_aesdec_epi128(b, a);
#      |             ^
#   29|       __m256i a = _mm256_set1_epi32(-1);
#   30|       __m256i b = _mm256_aesenc_epi128(a, a);
#   31|->     __m256i c = _mm256_aesdec_epi128(b, a);
#   32|   }
#   33|   #endif

Error: COMPILER_WARNING (CWE-477): [#def21]
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/examples/sql/sqlbrowser/qsqlconnectiondialog.cpp: scope_hint: In constructor ‘QSqlConnectionDialog::QSqlConnectionDialog(QWidget*)’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/examples/sql/sqlbrowser/qsqlconnectiondialog.cpp:29:43: warning[-Wdeprecated-declarations]: ‘void QCheckBox::stateChanged(int)’ is deprecated: Use checkStateChanged() instead
#   29 |     connect(m_ui->dbCheckBox, &QCheckBox::stateChanged,
#      |                                           ^~~~~~~~~~~~
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/redhat-linux-build/include/QtWidgets/qcheckbox.h:1: included_from: Included from here.
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/redhat-linux-build/include/QtWidgets/QCheckBox:1: included_from: Included from here.
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/redhat-linux-build/examples/sql/sqlbrowser/sqlbrowser_autogen/include/ui_qsqlconnectiondialog.h:14: included_from: Included from here.
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/examples/sql/sqlbrowser/qsqlconnectiondialog.cpp:5: included_from: Included from here.
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/widgets/widgets/qcheckbox.h:41:10: note: declared here
#   41 |     void stateChanged(int);
#      |          ^~~~~~~~~~~~
#   27|       connect(m_ui->cancelButton, &QPushButton::clicked,
#   28|               this, &QSqlConnectionDialog::reject);
#   29|->     connect(m_ui->dbCheckBox, &QCheckBox::stateChanged,
#   30|               this, &QSqlConnectionDialog::onDbCheckBox);
#   31|   }

Error: COMPILER_WARNING (CWE-477): [#def22]
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/examples/widgets/rhi/cuberhiwidget/main.cpp: scope_hint: In function ‘int main(int, char**)’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/examples/widgets/rhi/cuberhiwidget/main.cpp:107:42: warning[-Wdeprecated-declarations]: ‘void QCheckBox::stateChanged(int)’ is deprecated: Use checkStateChanged() instead
#  107 |     QObject::connect(cbMsaa, &QCheckBox::stateChanged, cbMsaa, [cbMsaa, rhiWidget] {
#      |                                          ^~~~~~~~~~~~
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/redhat-linux-build/include/QtWidgets/qcheckbox.h:1: included_from: Included from here.
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/redhat-linux-build/include/QtWidgets/QCheckBox:1: included_from: Included from here.
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/examples/widgets/rhi/cuberhiwidget/main.cpp:11: included_from: Included from here.
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/widgets/widgets/qcheckbox.h:41:10: note: declared here
#   41 |     void stateChanged(int);
#      |          ^~~~~~~~~~~~
#  105|   
#  106|       QCheckBox *cbMsaa = new QCheckBox(QObject::tr("Use 4x MSAA"));
#  107|->     QObject::connect(cbMsaa, &QCheckBox::stateChanged, cbMsaa, [cbMsaa, rhiWidget] {
#  108|           if (cbMsaa->isChecked())
#  109|               rhiWidget->setSampleCount(4);

Error: COMPILER_WARNING (CWE-477): [#def23]
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/examples/widgets/rhi/cuberhiwidget/main.cpp:116:46: warning[-Wdeprecated-declarations]: ‘void QCheckBox::stateChanged(int)’ is deprecated: Use checkStateChanged() instead
#  116 |     QObject::connect(cbOvberlay, &QCheckBox::stateChanged, cbOvberlay, [cbOvberlay, overlayLabel] {
#      |                                              ^~~~~~~~~~~~
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/widgets/widgets/qcheckbox.h:41:10: note: declared here
#   41 |     void stateChanged(int);
#      |          ^~~~~~~~~~~~
#  114|   
#  115|       QCheckBox *cbOvberlay = new QCheckBox(QObject::tr("Show overlay widget"));
#  116|->     QObject::connect(cbOvberlay, &QCheckBox::stateChanged, cbOvberlay, [cbOvberlay, overlayLabel] {
#  117|           if (cbOvberlay->isChecked())
#  118|               overlayLabel->setVisible(true);

Error: COMPILER_WARNING (CWE-477): [#def24]
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/examples/widgets/rhi/cuberhiwidget/main.cpp:125:42: warning[-Wdeprecated-declarations]: ‘void QCheckBox::stateChanged(int)’ is deprecated: Use checkStateChanged() instead
#  125 |     QObject::connect(cbFlip, &QCheckBox::stateChanged, cbOvberlay, [cbFlip, rhiWidget] {
#      |                                          ^~~~~~~~~~~~
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/widgets/widgets/qcheckbox.h:41:10: note: declared here
#   41 |     void stateChanged(int);
#      |          ^~~~~~~~~~~~
#  123|   
#  124|       QCheckBox *cbFlip = new QCheckBox(QObject::tr("Flip"));
#  125|->     QObject::connect(cbFlip, &QCheckBox::stateChanged, cbOvberlay, [cbFlip, rhiWidget] {
#  126|           rhiWidget->setMirrorVertically(cbFlip->isChecked());
#  127|       });

Error: COMPILER_WARNING (CWE-477): [#def25]
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/examples/widgets/rhi/cuberhiwidget/main.cpp:137:47: warning[-Wdeprecated-declarations]: ‘void QCheckBox::stateChanged(int)’ is deprecated: Use checkStateChanged() instead
#  137 |     QObject::connect(cbFixedSize, &QCheckBox::stateChanged, cbFixedSize, [cbFixedSize, fixedSizeSlider, rhiWidget] {
#      |                                               ^~~~~~~~~~~~
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/widgets/widgets/qcheckbox.h:41:10: note: declared here
#   41 |     void stateChanged(int);
#      |          ^~~~~~~~~~~~
#  135|       btnLayout->addWidget(fixedSizeSlider);
#  136|   
#  137|->     QObject::connect(cbFixedSize, &QCheckBox::stateChanged, cbFixedSize, [cbFixedSize, fixedSizeSlider, rhiWidget] {
#  138|           if (cbFixedSize->isChecked())
#  139|               rhiWidget->setFixedColorBufferSize(QSize(fixedSizeSlider->value(), fixedSizeSlider->value()));

Error: CPPCHECK_WARNING (CWE-476): [#def26]
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-aNIyh2/src.cxx:6: error[nullPointer]: Null pointer dereference

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def27]
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/corelib/io/forkfd_qt.c:15: included_from: Included from here.
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c: scope_hint: In function ‘notifyAndFreeInfo’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:313:21: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘*entry.deathPipe’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:124:15: note: in definition of macro ‘EINTR_LOOP’
/usr/include/signal.h:57: included_from: Included from here.
/usr/include/sys/wait.h:36: included_from: Included from here.
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.h:30: included_from: Included from here.
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/corelib/io/forkfd_qt.c:14: included_from: Included from here.
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:124:15: note: in definition of macro ‘EINTR_LOOP’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:124:15: note: in definition of macro ‘EINTR_LOOP’
#  311|       ssize_t ret;
#  312|       EINTR_LOOP(ret, write(entry->deathPipe, payload, sizeof(*payload)));
#  313|->     EINTR_LOOP(ret, close(entry->deathPipe));
#  314|   
#  315|       freeInfo(header, entry);

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def28]
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c: scope_hint: In function ‘forkfd_fork_fallback’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:661:29: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘efd’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:124:15: note: in definition of macro ‘EINTR_LOOP’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd_c11.h:41: included_from: Included from here.
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd_atomic.h:31: included_from: Included from here.
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:102: included_from: Included from here.
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:179:17: note: in expansion of macro ‘ffd_atomic_compare_exchange’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:124:15: note: in definition of macro ‘EINTR_LOOP’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:661:13: note: in expansion of macro ‘EINTR_LOOP’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:124:15: note: in definition of macro ‘EINTR_LOOP’
#  659|               eventfd_t val64;
#  660|               EINTR_LOOP(ret, eventfd_read(efd, &val64));
#  661|->             EINTR_LOOP(ret, close(efd));
#  662|   #endif
#  663|           } else {

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def29]
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:665:29: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘sync_pipe[1]’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:124:15: note: in definition of macro ‘EINTR_LOOP’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:179:17: note: in expansion of macro ‘ffd_atomic_compare_exchange’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c: scope_hint: In function ‘forkfd_fork_fallback’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:124:15: note: in definition of macro ‘EINTR_LOOP’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:665:13: note: in expansion of macro ‘EINTR_LOOP’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:124:15: note: in definition of macro ‘EINTR_LOOP’
#  663|           } else {
#  664|               char c;
#  665|->             EINTR_LOOP(ret, close(sync_pipe[1]));
#  666|               EINTR_LOOP(ret, read(sync_pipe[0], &c, sizeof c));
#  667|               EINTR_LOOP(ret, close(sync_pipe[0]));

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def30]
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:667:29: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘sync_pipe[0]’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:124:15: note: in definition of macro ‘EINTR_LOOP’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:179:17: note: in expansion of macro ‘ffd_atomic_compare_exchange’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c: scope_hint: In function ‘forkfd_fork_fallback’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:124:15: note: in definition of macro ‘EINTR_LOOP’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:667:13: note: in expansion of macro ‘EINTR_LOOP’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:124:15: note: in definition of macro ‘EINTR_LOOP’
#  665|               EINTR_LOOP(ret, close(sync_pipe[1]));
#  666|               EINTR_LOOP(ret, read(sync_pipe[0], &c, sizeof c));
#  667|->             EINTR_LOOP(ret, close(sync_pipe[0]));
#  668|           }
#  669|   

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def31]
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:672:25: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘death_pipe[1]’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:124:15: note: in definition of macro ‘EINTR_LOOP’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:179:17: note: in expansion of macro ‘ffd_atomic_compare_exchange’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:124:15: note: in definition of macro ‘EINTR_LOOP’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:672:9: note: in expansion of macro ‘EINTR_LOOP’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:124:15: note: in definition of macro ‘EINTR_LOOP’
#  670|           /* now close the pipes and return to the caller */
#  671|           EINTR_LOOP(ret, close(death_pipe[0]));
#  672|->         EINTR_LOOP(ret, close(death_pipe[1]));
#  673|           fd = FFD_CHILD_PROCESS;
#  674|       } else {

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def32]
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:685:29: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘efd’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:124:15: note: in definition of macro ‘EINTR_LOOP’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:179:17: note: in expansion of macro ‘ffd_atomic_compare_exchange’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:124:15: note: in definition of macro ‘EINTR_LOOP’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:685:13: note: in expansion of macro ‘EINTR_LOOP’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:124:15: note: in definition of macro ‘EINTR_LOOP’
#  683|               eventfd_t val64 = 42;
#  684|               EINTR_LOOP(ret, eventfd_write(efd, val64));
#  685|->             EINTR_LOOP(ret, close(efd));
#  686|           } else
#  687|   #endif

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def33]
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:705:25: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘efd’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:124:15: note: in definition of macro ‘EINTR_LOOP’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:179:17: note: in expansion of macro ‘ffd_atomic_compare_exchange’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:124:15: note: in definition of macro ‘EINTR_LOOP’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:705:9: note: in expansion of macro ‘EINTR_LOOP’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:124:15: note: in definition of macro ‘EINTR_LOOP’
#  703|   #ifdef HAVE_EVENTFD
#  704|       if (efd != -1) {
#  705|->         EINTR_LOOP(ret, close(efd));
#  706|       } else
#  707|   #endif

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def34]
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:709:25: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘sync_pipe[0]’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:124:15: note: in definition of macro ‘EINTR_LOOP’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:179:17: note: in expansion of macro ‘ffd_atomic_compare_exchange’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c: scope_hint: In function ‘forkfd_fork_fallback’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:124:15: note: in definition of macro ‘EINTR_LOOP’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:709:9: note: in expansion of macro ‘EINTR_LOOP’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:124:15: note: in definition of macro ‘EINTR_LOOP’
#  707|   #endif
#  708|       {
#  709|->         EINTR_LOOP(ret, close(sync_pipe[0]));
#  710|           EINTR_LOOP(ret, close(sync_pipe[1]));
#  711|       }

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def35]
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:710:25: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘sync_pipe[1]’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:124:15: note: in definition of macro ‘EINTR_LOOP’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:179:17: note: in expansion of macro ‘ffd_atomic_compare_exchange’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c: scope_hint: In function ‘forkfd_fork_fallback’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:124:15: note: in definition of macro ‘EINTR_LOOP’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:710:9: note: in expansion of macro ‘EINTR_LOOP’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:124:15: note: in definition of macro ‘EINTR_LOOP’
#  708|       {
#  709|           EINTR_LOOP(ret, close(sync_pipe[0]));
#  710|->         EINTR_LOOP(ret, close(sync_pipe[1]));
#  711|       }
#  712|   err_close:

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def36]
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:714:21: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘death_pipe[1]’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:124:15: note: in definition of macro ‘EINTR_LOOP’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:179:17: note: in expansion of macro ‘ffd_atomic_compare_exchange’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c: scope_hint: In function ‘forkfd_fork_fallback’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:124:15: note: in definition of macro ‘EINTR_LOOP’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:714:5: note: in expansion of macro ‘EINTR_LOOP’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/forkfd/forkfd.c:124:15: note: in definition of macro ‘EINTR_LOOP’
#  712|   err_close:
#  713|       EINTR_LOOP(ret, close(death_pipe[0]));
#  714|->     EINTR_LOOP(ret, close(death_pipe[1]));
#  715|   err_free:
#  716|       /* free the info pointer */

Error: COMPILER_WARNING (CWE-457): [#def37]
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/md4c/md4c.c:2239:7: warning[-Wmaybe-uninitialized]: ‘label_contents_line_index’ may be used uninitialized
# 2239 |     if(label_is_multiline) {
#      |       ^
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/md4c/md4c.c: scope_hint: In function ‘md_end_current_block’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/3rdparty/md4c/md4c.c:2158:13: note: ‘label_contents_line_index’ was declared here
# 2158 |     MD_SIZE label_contents_line_index;
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~
# 2237|       memset(def, 0, sizeof(MD_REF_DEF));
# 2238|   
# 2239|->     if(label_is_multiline) {
# 2240|           MD_CHECK(md_merge_lines_alloc(ctx, label_contents_beg, label_contents_end,
# 2241|                       lines + label_contents_line_index, n_lines - label_contents_line_index,

Error: COMPILER_WARNING (CWE-126): [#def38]
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/corelib/text/qbytearrayview.h:78:16: warning[-Wstringop-overread]: ‘strlen’ argument missing terminating nul
#   78 |     while (data[i] != Char(0))
#      |            ~~~~^
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/corelib/serialization/qxmlstream.cpp: scope_hint: In member function ‘void QXmlStreamReaderPrivate::checkToken()’
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/corelib/serialization/qxmlstream.cpp:769:23: note: referenced argument declared here
#  769 | static constexpr auto QXmlStreamReader_XmlContextString = qOffsetStringArray(
#      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   76|       if (!data)
#   77|           return i;
#   78|->     while (data[i] != Char(0))
#   79|           ++i;
#   80|       return i;

Error: COMPILER_WARNING (CWE-477): [#def39]
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/gui/accessible/linux/dbusconnection.cpp: scope_hint: In lambda function
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/gui/accessible/linux/dbusconnection.cpp:63:75: warning[-Wdeprecated-declarations]: ‘bool operator==(const QString&, const char* const&)’ is deprecated: Use fromUtf8, QStringLiteral, or QLatin1StringView
#   63 |         if (interface_name == OrgA11yStatusInterface::staticInterfaceName())
#      |                                                                           ^
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/redhat-linux-build/include/QtCore/qoverload.h:1: included_from: Included from here.
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/corelib/global/qglobal.h:63: included_from: Included from here.
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/redhat-linux-build/include/QtCore/qglobal.h:1: included_from: Included from here.
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/corelib/global/qt_pch.h:20: included_from: Included from here.
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/src/gui/kernel/qt_gui_pch.h:12: included_from: Included from here.
qt6-qtbase-6.8.0-build/qtbase-everywhere-src-6.8.0/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.8.0-build/qtbase-everywhere-src-6.8.0/src/corelib/text/qstring.h:931:5: note: declared here
#  931 |     Q_DECLARE_STRONGLY_ORDERED(QString, const char *, QT_ASCII_CAST_WARN)
#      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
#   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
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.8.0-4.fc42
store-results-to/tmp/tmpymeypn5k/qt6-qtbase-6.8.0-4.fc42.tar.xz
time-created2024-11-13 03:17:14
time-finished2024-11-13 03:40:58
toolcsmock
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'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9