kf6-kfilemetadata-6.8.0-1.fc42

List of Findings

Error: COMPILER_WARNING (CWE-477): [#def1]
kf6-kfilemetadata-6.8.0-build/kfilemetadata-6.8.0/src/extractors/exiv2extractor.cpp: scope_hint: In constructor ‘KFileMetaData::Exiv2Extractor::Exiv2Extractor(QObject*)’
kf6-kfilemetadata-6.8.0-build/kfilemetadata-6.8.0/src/extractors/exiv2extractor.cpp:30:22: warning[-Wdeprecated-declarations]: ‘bool Exiv2::enableBMFF(bool)’ is deprecated
#   30 |     Exiv2::enableBMFF(true);
#      |     ~~~~~~~~~~~~~~~~~^~~~~~
/usr/include/exiv2/exiv2.hpp:9: included_from: Included from here.
kf6-kfilemetadata-6.8.0-build/kfilemetadata-6.8.0/src/extractors/exiv2extractor.cpp:12: included_from: Included from here.
/usr/include/exiv2/bmffimage.hpp:16:30: note: declared here
#   16 | [[deprecated]] EXIV2API bool enableBMFF(bool enable = true);
#      |                              ^~~~~~~~~~
#   28|   {
#   29|   #ifdef EXV_ENABLE_BMFF
#   30|->     Exiv2::enableBMFF(true);
#   31|   #endif
#   32|   }

Error: COMPILER_WARNING (CWE-477): [#def2]
kf6-kfilemetadata-6.8.0-build/kfilemetadata-6.8.0/src/extractors/odfextractor.cpp: scope_hint: In member function ‘void KFileMetaData::OdfExtractor::parseMetaData(const QString&, const QByteArray&, KFileMetaData::ExtractionResult*)’
kf6-kfilemetadata-6.8.0-build/kfilemetadata-6.8.0/src/extractors/odfextractor.cpp:154:24: warning[-Wdeprecated-declarations]: ‘bool QDomDocument::setContent(const QByteArray&, bool, QString*, int*, int*)’ is deprecated: Use the overload taking ParseOptions instead.
#  154 |     metaData.setContent(data, true);
#      |     ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/usr/include/qt6/QtXml/QDomDocument:1: included_from: Included from here.
kf6-kfilemetadata-6.8.0-build/kfilemetadata-6.8.0/src/extractors/odfextractor.cpp:16: included_from: Included from here.
/usr/include/qt6/QtXml/qdom.h:320:10: note: declared here
#  320 |     bool setContent(const QByteArray &text, bool namespaceProcessing, QString *errorMsg = nullptr, int *errorLine = nullptr, int *errorColumn = nullptr);
#      |          ^~~~~~~~~~
#  152|   {
#  153|       QDomDocument metaData(QStringLiteral("metaData"));
#  154|->     metaData.setContent(data, true);
#  155|   
#  156|       // parse metadata ...

Error: COMPILER_WARNING (CWE-477): [#def3]
kf6-kfilemetadata-6.8.0-build/kfilemetadata-6.8.0/src/extractors/office2007extractor.cpp: scope_hint: In member function ‘virtual void KFileMetaData::Office2007Extractor::extract(KFileMetaData::ExtractionResult*)’
kf6-kfilemetadata-6.8.0-build/kfilemetadata-6.8.0/src/extractors/office2007extractor.cpp:80:27: warning[-Wdeprecated-declarations]: ‘bool QDomDocument::setContent(const QByteArray&, bool, QString*, int*, int*)’ is deprecated: Use the overload taking ParseOptions instead.
#   80 |         coreDoc.setContent(file->data(), true);
#      |         ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
/usr/include/qt6/QtXml/QDomNode:1: included_from: Included from here.
kf6-kfilemetadata-6.8.0-build/kfilemetadata-6.8.0/src/extractors/dublincoreextractor.h:13: included_from: Included from here.
kf6-kfilemetadata-6.8.0-build/kfilemetadata-6.8.0/src/extractors/office2007extractor.cpp:10: included_from: Included from here.
/usr/include/qt6/QtXml/qdom.h:320:10: note: declared here
#  320 |     bool setContent(const QByteArray &text, bool namespaceProcessing, QString *errorMsg = nullptr, int *errorLine = nullptr, int *errorColumn = nullptr);
#      |          ^~~~~~~~~~
#   78|       if (extractMetaData && file) {
#   79|           QDomDocument coreDoc(QStringLiteral("core"));
#   80|->         coreDoc.setContent(file->data(), true);
#   81|   
#   82|           QDomElement cpElem = coreDoc.documentElement();

Error: COMPILER_WARNING (CWE-477): [#def4]
kf6-kfilemetadata-6.8.0-build/kfilemetadata-6.8.0/src/extractors/xmlextractor.cpp: scope_hint: In member function ‘virtual void KFileMetaData::XmlExtractor::extract(KFileMetaData::ExtractionResult*)’
kf6-kfilemetadata-6.8.0-build/kfilemetadata-6.8.0/src/extractors/xmlextractor.cpp:103:23: warning[-Wdeprecated-declarations]: ‘bool QDomDocument::setContent(QIODevice*, bool, QString*, int*, int*)’ is deprecated: Use the overload taking ParseOptions instead.
#  103 |         doc.setContent(ioDevice, processNamespaces);
#      |         ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt6/QtXml/QDomNode:1: included_from: Included from here.
kf6-kfilemetadata-6.8.0-build/kfilemetadata-6.8.0/src/extractors/dublincoreextractor.h:13: included_from: Included from here.
kf6-kfilemetadata-6.8.0-build/kfilemetadata-6.8.0/src/extractors/xmlextractor.cpp:10: included_from: Included from here.
/usr/include/qt6/QtXml/qdom.h:324:10: note: declared here
#  324 |     bool setContent(QIODevice *dev, bool namespaceProcessing, QString *errorMsg = nullptr, int *errorLine = nullptr, int *errorColumn = nullptr);
#      |          ^~~~~~~~~~
#  101|           QDomDocument doc;
#  102|           const bool processNamespaces = true;
#  103|->         doc.setContent(ioDevice, processNamespaces);
#  104|           QDomElement svg = doc.firstChildElement();
#  105|   

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-234.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namekf6-kfilemetadata-6.8.0-1.fc42
store-results-to/tmp/tmpn2sejwm6/kf6-kfilemetadata-6.8.0-1.fc42.tar.xz
time-created2024-11-13 00:47:55
time-finished2024-11-13 00:50:11
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpn2sejwm6/kf6-kfilemetadata-6.8.0-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpn2sejwm6/kf6-kfilemetadata-6.8.0-1.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9