qt6-qtbase-6.9.0-1.fc43

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"; 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"; pwd)`
#    9|   
#   10|   # Try to use original cmake, otherwise to make it relocatable, use any cmake found in PATH.

Error: SHELLCHECK_WARNING (CWE-569): [#def3]
/usr/bin/qt-configure-module:18:1: warning[SC2188]: This redirection doesn't have a command. Move to its command (or use 'true' as no-op).
#   16|   determineOptFilePath()
#   17|   {
#   18|-> > "${outpathPrefix}/config.redo.in"
#   19|   set -f  # suppress globbing in for loop
#   20|   for i in "$@"; do

Error: SHELLCHECK_WARNING (CWE-569): [#def4]
/usr/bin/qt-configure-module:76:5: warning[SC2188]: This redirection doesn't have a command. Move to its command (or use 'true' as no-op).
#   74|   fresh_requested_arg=
#   75|   if [ -z "$optfile" ]; then   # only write optfile if not currently redoing
#   76|->     > "$opttmpfilepath"
#   77|       > "$redotmpfilepath"
#   78|   

Error: SHELLCHECK_WARNING (CWE-569): [#def5]
/usr/bin/qt-configure-module:77:5: warning[SC2188]: This redirection doesn't have a command. Move to its command (or use 'true' as no-op).
#   75|   if [ -z "$optfile" ]; then   # only write optfile if not currently redoing
#   76|       > "$opttmpfilepath"
#   77|->     > "$redotmpfilepath"
#   78|   
#   79|       for arg in "$@"; do echo \"$arg\" >> "$opttmpfilepath"; done

Error: SHELLCHECK_WARNING (CWE-569): [#def6]
/usr/bin/qt-configure-module:86:5: warning[SC2188]: This redirection doesn't have a command. Move to its command (or use 'true' as no-op).
#   84|   else
#   85|       # Rewriting config.opt into config.opt.in anyway. Allows for direct manipulation of config.opt
#   86|->     > "$opttmpfilepath"
#   87|       for arg in `cat $optfile`; do echo \"$arg\" >> "$opttmpfilepath"; done
#   88|   

Error: SHELLCHECK_WARNING (CWE-563): [#def7]
/usr/bin/qt-configure-module:93:5: warning[SC2034]: fresh_requested_arg appears unused. Verify use (or export if used externally).
#   91|           -P "$script_dir_path/../../cmake/Qt6/QtWriteArgsFile.cmake"
#   92|       optfilepath=${redofilepath}
#   93|->     fresh_requested_arg=-DFRESH_REQUESTED=TRUE
#   94|   fi
#   95|   

Error: SHELLCHECK_WARNING (CWE-252): [#def8]
/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"; pwd)`
#    6|   
#    7|   # Try to use original cmake, otherwise to make it relocatable, use any cmake found in PATH.

Error: SHELLCHECK_WARNING (CWE-252): [#def9]
/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"; pwd)`
#    9|   
#   10|   # Try to use original cmake, otherwise to make it relocatable, use any cmake found in PATH.

Error: SHELLCHECK_WARNING (CWE-569): [#def10]
/usr/lib64/qt6/bin/qt-configure-module:18:1: warning[SC2188]: This redirection doesn't have a command. Move to its command (or use 'true' as no-op).
#   16|   determineOptFilePath()
#   17|   {
#   18|-> > "${outpathPrefix}/config.redo.in"
#   19|   set -f  # suppress globbing in for loop
#   20|   for i in "$@"; do

Error: SHELLCHECK_WARNING (CWE-569): [#def11]
/usr/lib64/qt6/bin/qt-configure-module:76:5: warning[SC2188]: This redirection doesn't have a command. Move to its command (or use 'true' as no-op).
#   74|   fresh_requested_arg=
#   75|   if [ -z "$optfile" ]; then   # only write optfile if not currently redoing
#   76|->     > "$opttmpfilepath"
#   77|       > "$redotmpfilepath"
#   78|   

Error: SHELLCHECK_WARNING (CWE-569): [#def12]
/usr/lib64/qt6/bin/qt-configure-module:77:5: warning[SC2188]: This redirection doesn't have a command. Move to its command (or use 'true' as no-op).
#   75|   if [ -z "$optfile" ]; then   # only write optfile if not currently redoing
#   76|       > "$opttmpfilepath"
#   77|->     > "$redotmpfilepath"
#   78|   
#   79|       for arg in "$@"; do echo \"$arg\" >> "$opttmpfilepath"; done

Error: SHELLCHECK_WARNING (CWE-569): [#def13]
/usr/lib64/qt6/bin/qt-configure-module:86:5: warning[SC2188]: This redirection doesn't have a command. Move to its command (or use 'true' as no-op).
#   84|   else
#   85|       # Rewriting config.opt into config.opt.in anyway. Allows for direct manipulation of config.opt
#   86|->     > "$opttmpfilepath"
#   87|       for arg in `cat $optfile`; do echo \"$arg\" >> "$opttmpfilepath"; done
#   88|   

Error: SHELLCHECK_WARNING (CWE-563): [#def14]
/usr/lib64/qt6/bin/qt-configure-module:93:5: warning[SC2034]: fresh_requested_arg appears unused. Verify use (or export if used externally).
#   91|           -P "$script_dir_path/../../cmake/Qt6/QtWriteArgsFile.cmake"
#   92|       optfilepath=${redofilepath}
#   93|->     fresh_requested_arg=-DFRESH_REQUESTED=TRUE
#   94|   fi
#   95|   

Error: SHELLCHECK_WARNING (CWE-252): [#def15]
/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"; pwd)`
#    6|   
#    7|   # Try to use original cmake, otherwise to make it relocatable, use any cmake found in PATH.

Error: SHELLCHECK_WARNING (CWE-138): [#def16]
/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): [#def17]
/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"; 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): [#def18]
/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"; pwd)`
#    4|   
#    5|   "$script_dir_path/../bin/qt-cmake" -DQT_BUILD_STANDALONE_TESTS=ON -DQT_BUILD_EXAMPLES=OFF -DQT_USE_ORIGINAL_COMPILER=ON "$@"

Error: COMPILER_WARNING (CWE-563): [#def19]
qtbase-everywhere-src-6.9.0/config.tests/x86_simd/main.cpp: scope_hint: In function ‘void test_avx512vbmi2()’
qtbase-everywhere-src-6.9.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]
qtbase-everywhere-src-6.9.0/config.tests/x86_simd/main.cpp: scope_hint: In function ‘void test_vaes()’
qtbase-everywhere-src-6.9.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]
qtbase-everywhere-src-6.9.0/examples/widgets/rhi/cuberhiwidget/main.cpp: scope_hint: In function ‘int main(int, char**)’
qtbase-everywhere-src-6.9.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] {
#      |                                          ^~~~~~~~~~~~
qtbase-everywhere-src-6.9.0/redhat-linux-build/include/QtWidgets/qcheckbox.h:1: included_from: Included from here.
qtbase-everywhere-src-6.9.0/redhat-linux-build/include/QtWidgets/QCheckBox:1: included_from: Included from here.
qtbase-everywhere-src-6.9.0/examples/widgets/rhi/cuberhiwidget/main.cpp:11: included_from: Included from here.
qtbase-everywhere-src-6.9.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): [#def22]
qtbase-everywhere-src-6.9.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] {
#      |                                              ^~~~~~~~~~~~
qtbase-everywhere-src-6.9.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): [#def23]
qtbase-everywhere-src-6.9.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] {
#      |                                          ^~~~~~~~~~~~
qtbase-everywhere-src-6.9.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): [#def24]
qtbase-everywhere-src-6.9.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] {
#      |                                               ^~~~~~~~~~~~
qtbase-everywhere-src-6.9.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): [#def25]
qtbase-everywhere-src-6.9.0/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-qdhBma/src.cxx:6: error[nullPointer]: Null pointer dereference

Error: COMPILER_WARNING (CWE-457): [#def26]
qtbase-everywhere-src-6.9.0/src/3rdparty/md4c/md4c.c:2239:7: warning[-Wmaybe-uninitialized]: ‘label_contents_line_index’ may be used uninitialized
# 2239 |     if(label_is_multiline) {
#      |       ^
qtbase-everywhere-src-6.9.0/src/3rdparty/md4c/md4c.c: scope_hint: In function ‘md_end_current_block’
qtbase-everywhere-src-6.9.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: GCC_ANALYZER_WARNING (CWE-1341): [#def27]
qtbase-everywhere-src-6.9.0/src/corelib/io/../../3rdparty/forkfd/forkfd.c:313:5: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘*entry.deathPipe’
qtbase-everywhere-src-6.9.0/src/corelib/io/../../3rdparty/forkfd/forkfd.c:319:13: enter_function: entry to ‘sigchld_handler’
qtbase-everywhere-src-6.9.0/src/corelib/io/../../3rdparty/forkfd/forkfd.c:344:9: call_function: calling ‘reapChildProcesses’ from ‘sigchld_handler’
#  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]
qtbase-everywhere-src-6.9.0/src/corelib/io/../../3rdparty/forkfd/forkfd.c:661:13: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘efd’
qtbase-everywhere-src-6.9.0/src/corelib/io/../../3rdparty/forkfd/forkfd.c:809:5: enter_function: entry to ‘vforkfd’
qtbase-everywhere-src-6.9.0/src/corelib/io/../../3rdparty/forkfd/forkfd.c:819:10: call_function: calling ‘forkfd_fork_fallback’ from ‘vforkfd’
#  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]
qtbase-everywhere-src-6.9.0/src/corelib/io/../../3rdparty/forkfd/forkfd.c:665:13: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘sync_pipe[1]’
qtbase-everywhere-src-6.9.0/src/corelib/io/../../3rdparty/forkfd/forkfd.c:809:5: enter_function: entry to ‘vforkfd’
qtbase-everywhere-src-6.9.0/src/corelib/io/../../3rdparty/forkfd/forkfd.c:819:10: call_function: calling ‘forkfd_fork_fallback’ from ‘vforkfd’
#  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]
qtbase-everywhere-src-6.9.0/src/corelib/io/../../3rdparty/forkfd/forkfd.c:667:13: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘sync_pipe[0]’
qtbase-everywhere-src-6.9.0/src/corelib/io/../../3rdparty/forkfd/forkfd.c:809:5: enter_function: entry to ‘vforkfd’
qtbase-everywhere-src-6.9.0/src/corelib/io/../../3rdparty/forkfd/forkfd.c:819:10: call_function: calling ‘forkfd_fork_fallback’ from ‘vforkfd’
#  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]
qtbase-everywhere-src-6.9.0/src/corelib/io/../../3rdparty/forkfd/forkfd.c:672:9: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘death_pipe[1]’
qtbase-everywhere-src-6.9.0/src/corelib/io/../../3rdparty/forkfd/forkfd.c:809:5: enter_function: entry to ‘vforkfd’
qtbase-everywhere-src-6.9.0/src/corelib/io/../../3rdparty/forkfd/forkfd.c:819:10: call_function: calling ‘forkfd_fork_fallback’ from ‘vforkfd’
#  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]
qtbase-everywhere-src-6.9.0/src/corelib/io/../../3rdparty/forkfd/forkfd.c:685:13: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘efd’
qtbase-everywhere-src-6.9.0/src/corelib/io/../../3rdparty/forkfd/forkfd.c:809:5: enter_function: entry to ‘vforkfd’
qtbase-everywhere-src-6.9.0/src/corelib/io/../../3rdparty/forkfd/forkfd.c:819:10: call_function: calling ‘forkfd_fork_fallback’ from ‘vforkfd’
#  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]
qtbase-everywhere-src-6.9.0/src/corelib/io/../../3rdparty/forkfd/forkfd.c:705:9: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘efd’
qtbase-everywhere-src-6.9.0/src/corelib/io/../../3rdparty/forkfd/forkfd.c:809:5: enter_function: entry to ‘vforkfd’
qtbase-everywhere-src-6.9.0/src/corelib/io/../../3rdparty/forkfd/forkfd.c:819:10: call_function: calling ‘forkfd_fork_fallback’ from ‘vforkfd’
#  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]
qtbase-everywhere-src-6.9.0/src/corelib/io/../../3rdparty/forkfd/forkfd.c:709:9: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘sync_pipe[0]’
qtbase-everywhere-src-6.9.0/src/corelib/io/../../3rdparty/forkfd/forkfd.c:809:5: enter_function: entry to ‘vforkfd’
qtbase-everywhere-src-6.9.0/src/corelib/io/../../3rdparty/forkfd/forkfd.c:819:10: call_function: calling ‘forkfd_fork_fallback’ from ‘vforkfd’
#  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]
qtbase-everywhere-src-6.9.0/src/corelib/io/../../3rdparty/forkfd/forkfd.c:710:9: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘sync_pipe[1]’
qtbase-everywhere-src-6.9.0/src/corelib/io/../../3rdparty/forkfd/forkfd.c:809:5: enter_function: entry to ‘vforkfd’
qtbase-everywhere-src-6.9.0/src/corelib/io/../../3rdparty/forkfd/forkfd.c:819:10: call_function: calling ‘forkfd_fork_fallback’ from ‘vforkfd’
#  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]
qtbase-everywhere-src-6.9.0/src/corelib/io/../../3rdparty/forkfd/forkfd.c:714:5: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘death_pipe[1]’
qtbase-everywhere-src-6.9.0/src/corelib/io/../../3rdparty/forkfd/forkfd.c:809:5: enter_function: entry to ‘vforkfd’
qtbase-everywhere-src-6.9.0/src/corelib/io/../../3rdparty/forkfd/forkfd.c:819:10: call_function: calling ‘forkfd_fork_fallback’ from ‘vforkfd’
#  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 */

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-226.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-nameqt6-qtbase-6.9.0-1.fc43
store-results-to/tmp/tmpbcjda_h6/qt6-qtbase-6.9.0-1.fc43.tar.xz
time-created2025-04-25 15:40:50
time-finished2025-04-25 16:05:36
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpbcjda_h6/qt6-qtbase-6.9.0-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpbcjda_h6/qt6-qtbase-6.9.0-1.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9