kf6-kparts-6.22.0-1.fc44

List of Findings

Error: COMPILER_WARNING (CWE-252): [#def1]
kparts-6.22.0/src/readonlypart.cpp: scope_hint: In member function ‘void KParts::ReadOnlyPartPrivate::openRemoteFile()’
kparts-6.22.0/src/readonlypart.cpp:181:18: warning[-Wunused-result]: ignoring return value of ‘bool QTemporaryFile::open()’, declared with attribute ‘nodiscard’
#  181 |     tempFile.open();
#      |     ~~~~~~~~~~~~~^~
/usr/include/qt6/QtCore/QTemporaryFile:1: included_from: Included from here.
kparts-6.22.0/src/readonlypart.cpp:25: included_from: Included from here.
/usr/include/qt6/QtCore/qtemporaryfile.h:52:32: note: declared here
#   52 |     QFILE_MAYBE_NODISCARD bool open() { return open(QIODevice::ReadWrite); }
#      |                                ^~~~
#  179|       QTemporaryFile tempFile(QDir::tempPath() + QLatin1Char('/') + m_metaData.pluginId() + QLatin1String("XXXXXX") + extension);
#  180|       tempFile.setAutoRemove(false);
#  181|->     tempFile.open();
#  182|       m_file = tempFile.fileName();
#  183|   

Error: COMPILER_WARNING (CWE-252): [#def2]
kparts-6.22.0/src/readwritepart.cpp: scope_hint: In member function ‘void KParts::ReadWritePartPrivate::prepareSaving()’
kparts-6.22.0/src/readwritepart.cpp:209:26: warning[-Wunused-result]: ignoring return value of ‘bool QTemporaryFile::open()’, declared with attribute ‘nodiscard’
#  209 |             tempFile.open();
#      |             ~~~~~~~~~~~~~^~
/usr/include/qt6/QtCore/QTemporaryFile:1: included_from: Included from here.
kparts-6.22.0/src/readwritepart.cpp:26: included_from: Included from here.
/usr/include/qt6/QtCore/qtemporaryfile.h:52:32: note: declared here
#   52 |     QFILE_MAYBE_NODISCARD bool open() { return open(QIODevice::ReadWrite); }
#      |                                ^~~~
#  207|               QTemporaryFile tempFile;
#  208|               tempFile.setAutoRemove(false);
#  209|->             tempFile.open();
#  210|               m_file = tempFile.fileName();
#  211|               m_bTemp = true;

Error: COMPILER_WARNING (CWE-252): [#def3]
kparts-6.22.0/src/readwritepart.cpp: scope_hint: In member function ‘virtual bool KParts::ReadWritePart::saveToUrl()’
kparts-6.22.0/src/readwritepart.cpp:247:23: warning[-Wunused-result]: ignoring return value of ‘bool QTemporaryFile::open()’, declared with attribute ‘nodiscard’
#  247 |         tempFile->open();
#      |         ~~~~~~~~~~~~~~^~
/usr/include/qt6/QtCore/qtemporaryfile.h:52:32: note: declared here
#   52 |     QFILE_MAYBE_NODISCARD bool open() { return open(QIODevice::ReadWrite); }
#      |                                ^~~~
#  245|           }
#  246|           QTemporaryFile *tempFile = new QTemporaryFile();
#  247|->         tempFile->open();
#  248|           QString uploadFile = tempFile->fileName();
#  249|           delete tempFile;

Scan Properties

analyzer-version-clippy1.92.0
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.0
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-180.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namekf6-kparts-6.22.0-1.fc44
store-results-to/tmp/tmp6q2zo5b9/kf6-kparts-6.22.0-1.fc44.tar.xz
time-created2026-01-08 18:06:53
time-finished2026-01-08 18:10:22
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmp6q2zo5b9/kf6-kparts-6.22.0-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp6q2zo5b9/kf6-kparts-6.22.0-1.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9