kf6-kfilemetadata-6.3.0-1.fc41

List of Defects

Error: COMPILER_WARNING (CWE-477): [#def1]
kf6-kfilemetadata-6.3.0-build/kfilemetadata-6.3.0/src/extractors/odfextractor.cpp: scope_hint: In member function ‘void KFileMetaData::OdfExtractor::parseMetaData(const QString&, const QByteArray&, KFileMetaData::ExtractionResult*)’
kf6-kfilemetadata-6.3.0-build/kfilemetadata-6.3.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.3.0-build/kfilemetadata-6.3.0/src/extractors/odfextractor.cpp:16: included_from: Included from here.
/usr/include/qt6/QtXml/qdom.h:321:10: note: declared here
#  321 |     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): [#def2]
kf6-kfilemetadata-6.3.0-build/kfilemetadata-6.3.0/src/extractors/office2007extractor.cpp: scope_hint: In member function ‘virtual void KFileMetaData::Office2007Extractor::extract(KFileMetaData::ExtractionResult*)’
kf6-kfilemetadata-6.3.0-build/kfilemetadata-6.3.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.3.0-build/kfilemetadata-6.3.0/src/extractors/dublincoreextractor.h:13: included_from: Included from here.
kf6-kfilemetadata-6.3.0-build/kfilemetadata-6.3.0/src/extractors/office2007extractor.cpp:10: included_from: Included from here.
/usr/include/qt6/QtXml/qdom.h:321:10: note: declared here
#  321 |     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): [#def3]
kf6-kfilemetadata-6.3.0-build/kfilemetadata-6.3.0/src/extractors/xmlextractor.cpp: scope_hint: In member function ‘virtual void KFileMetaData::XmlExtractor::extract(KFileMetaData::ExtractionResult*)’
kf6-kfilemetadata-6.3.0-build/kfilemetadata-6.3.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.3.0-build/kfilemetadata-6.3.0/src/extractors/dublincoreextractor.h:13: included_from: Included from here.
kf6-kfilemetadata-6.3.0-build/kfilemetadata-6.3.0/src/extractors/xmlextractor.cpp:10: included_from: Included from here.
/usr/include/qt6/QtXml/qdom.h:325:10: note: declared here
#  325 |     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|   

Error: COMPILER_WARNING (CWE-909): [#def4]
kf6-kfilemetadata-6.3.0-build/kfilemetadata-6.3.0/src/propertyinfo.cpp:42:99: warning[-Wmissing-field-initializers]: missing initializer for member ‘KFileMetaData::PropertyInfoData::displayName’
#   42 | const PropertyInfoData PropertyInfoData::s_Empty{ Property::Empty, false, QStringLiteral("empty") };
#      |                                                                                                   ^
#   40|   };
#   41|   
#   42|-> const PropertyInfoData PropertyInfoData::s_Empty{ Property::Empty, false, QStringLiteral("empty") };
#   43|   
#   44|   const std::array<PropertyInfoData, 78> PropertyInfoData::s_allProperties

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-48.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namekf6-kfilemetadata-6.3.0-1.fc41
store-results-to/tmp/tmp31y2xj2k/kf6-kfilemetadata-6.3.0-1.fc41.tar.xz
time-created2024-07-03 14:09:26
time-finished2024-07-03 14:11:44
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp31y2xj2k/kf6-kfilemetadata-6.3.0-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp31y2xj2k/kf6-kfilemetadata-6.3.0-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9