kmenuedit-6.1.1-1.fc41

List of Defects

Error: CLANG_WARNING: [#def1]
kmenuedit-6.1.1-build/kmenuedit-6.1.1/klinespellchecking.cpp:22:19: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'ac'
#   20|   {
#   21|       KActionCollection *ac = new KActionCollection(this);
#   22|->     m_spellAction = KStandardAction::spelling(this, SLOT(slotCheckSpelling()), ac);
#   23|   }
#   24|   

Error: COMPILER_WARNING (CWE-477): [#def2]
kmenuedit-6.1.1-build/kmenuedit-6.1.1/menufile.cpp: scope_hint: In member function ‘bool MenuFile::load()’
kmenuedit-6.1.1-build/kmenuedit-6.1.1/menufile.cpp:67:26: warning[-Wdeprecated-declarations]: ‘bool QDomDocument::setContent(QIODevice*, QString*, int*, int*)’ is deprecated: Use the overload returning ParseResult instead.
#   67 |     if (!m_doc.setContent(&file, &errorMsg, &errorRow, &errorCol)) {
#      |          ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kmenuedit-6.1.1-build/kmenuedit-6.1.1/menufile.h:11: included_from: Included from here.
kmenuedit-6.1.1-build/kmenuedit-6.1.1/menufile.cpp:8: included_from: Included from here.
/usr/include/qt6/QtXml/qdom.h:331:10: note: declared here
#  331 |     bool setContent(QIODevice *dev, QString *errorMsg, int *errorLine = nullptr, int *errorColumn = nullptr);
#      |          ^~~~~~~~~~
#   65|       int errorRow;
#   66|       int errorCol;
#   67|->     if (!m_doc.setContent(&file, &errorMsg, &errorRow, &errorCol)) {
#   68|           qCWarning(KMENUEDIT_LOG) << "Parse error in " << m_fileName << ", line " << errorRow << ", col " << errorCol << ": " << errorMsg;
#   69|           file.close();

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-97.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namekmenuedit-6.1.1-1.fc41
store-results-to/tmp/tmppk8hoe1m/kmenuedit-6.1.1-1.fc41.tar.xz
time-created2024-07-03 14:25:49
time-finished2024-07-03 14:27:37
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmppk8hoe1m/kmenuedit-6.1.1-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmppk8hoe1m/kmenuedit-6.1.1-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9