Newly introduced defects

List of Defects

Error: COMPILER_WARNING (CWE-477): [#def1]
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();

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
diffbase-analyzer-version-clang18.1.7
diffbase-analyzer-version-cppcheck2.14.2
diffbase-analyzer-version-gcc14.1.1
diffbase-analyzer-version-gcc-analyzer14.1.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-enabled-pluginsclang, cppcheck, gcc, shellcheck
diffbase-exit-code0
diffbase-hostip-172-16-1-48.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namekf6-kfilemetadata-6.0.0-2.fc40
diffbase-store-results-to/tmp/tmpl68gla5m/kf6-kfilemetadata-6.0.0-2.fc40.tar.xz
diffbase-time-created2024-07-03 14:06:21
diffbase-time-finished2024-07-03 14:09:05
diffbase-toolcsmock
diffbase-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'
diffbase-tool-versioncsmock-3.5.3-1.el9
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
titleNewly introduced defects
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