kf6-kfilemetadata-6.0.0-2.fc40

List of Defects

Error: COMPILER_WARNING (CWE-477): [#def1]
kf6-kfilemetadata-6.0.0-build/kfilemetadata-6.0.0/src/extractors/odfextractor.cpp: scope_hint: In member function ‘void KFileMetaData::OdfExtractor::parseMetaData(const QString&, const QByteArray&, KFileMetaData::ExtractionResult*)’
kf6-kfilemetadata-6.0.0-build/kfilemetadata-6.0.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.0.0-build/kfilemetadata-6.0.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.0.0-build/kfilemetadata-6.0.0/src/extractors/xmlextractor.cpp: scope_hint: In member function ‘virtual void KFileMetaData::XmlExtractor::extract(KFileMetaData::ExtractionResult*)’
kf6-kfilemetadata-6.0.0-build/kfilemetadata-6.0.0/src/extractors/xmlextractor.cpp:78:23: warning[-Wdeprecated-declarations]: ‘bool QDomDocument::setContent(QIODevice*, bool, QString*, int*, int*)’ is deprecated: Use the overload taking ParseOptions instead.
#   78 |         doc.setContent(&file, processNamespaces);
#      |         ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt6/QtXml/QDomNode:1: included_from: Included from here.
kf6-kfilemetadata-6.0.0-build/kfilemetadata-6.0.0/src/extractors/dublincoreextractor.h:13: included_from: Included from here.
kf6-kfilemetadata-6.0.0-build/kfilemetadata-6.0.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);
#      |          ^~~~~~~~~~
#   76|           QDomDocument doc;
#   77|           const bool processNamespaces = true;
#   78|->         doc.setContent(&file, processNamespaces);
#   79|           QDomElement svg = doc.firstChildElement();
#   80|   

Error: COMPILER_WARNING (CWE-909): [#def3]
kf6-kfilemetadata-6.0.0-build/kfilemetadata-6.0.0/src/propertyinfo.cpp:34:104: warning[-Wmissing-field-initializers]: missing initializer for member ‘KFileMetaData::PropertyInfoData::displayName’
#   34 | const static PropertyInfoData staticEmptyPropertyInfo{ Property::Empty, false, QStringLiteral("empty") };
#      |                                                                                                        ^
#   32|   };
#   33|   
#   34|-> const static PropertyInfoData staticEmptyPropertyInfo{ Property::Empty, false, QStringLiteral("empty") };
#   35|   
#   36|   const static std::array<PropertyInfoData, 78> staticPropertyInfo

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.0.0-2.fc40
store-results-to/tmp/tmpl68gla5m/kf6-kfilemetadata-6.0.0-2.fc40.tar.xz
time-created2024-07-03 14:06:21
time-finished2024-07-03 14:09:05
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpl68gla5m/kf6-kfilemetadata-6.0.0-2.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpl68gla5m/kf6-kfilemetadata-6.0.0-2.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9