kf5-kconfigwidgets-5.116.0-1.fc41
List of Defects
Error: COMPILER_WARNING (CWE-477): [#def1]
kf5-kconfigwidgets-5.116.0-build/kconfigwidgets-5.116.0/src/kcodecaction.cpp: scope_hint: In member function ‘int KCodecAction::mibForName(const QString&, bool*) const’
kf5-kconfigwidgets-5.116.0-build/kconfigwidgets-5.116.0/src/kcodecaction.cpp:114:51: warning[-Wdeprecated-declarations]: ‘QTextCodec* KCharsets::codecForName(const QString&, bool&) const’ is deprecated: Since 5.101. use QTextCodec codecForName or QStringEncoder
# 114 | QTextCodec *codec = charsets->codecForName(codecName, success);
# | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
/usr/include/KF5/KCodecs/KCharsets:1: included_from: Included from here.
kf5-kconfigwidgets-5.116.0-build/kconfigwidgets-5.116.0/src/kcodecaction.cpp:12: included_from: Included from here.
/usr/include/KF5/KCodecs/kcharsets.h:86:17: note: declared here
# 86 | QTextCodec *codecForName(const QString &n, bool &ok) const;
# | ^~~~~~~~~~~~
# 112| success = true;
# 113| } else {
# 114|-> QTextCodec *codec = charsets->codecForName(codecName, success);
# 115| if (!success) {
# 116| // Maybe we got a description name instead
Error: COMPILER_WARNING (CWE-477): [#def2]
kf5-kconfigwidgets-5.116.0-build/kconfigwidgets-5.116.0/src/kcodecaction.cpp:117:43: warning[-Wdeprecated-declarations]: ‘QTextCodec* KCharsets::codecForName(const QString&, bool&) const’ is deprecated: Since 5.101. use QTextCodec codecForName or QStringEncoder
# 117 | codec = charsets->codecForName(charsets->encodingForName(codecName), success);
# | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/KF5/KCodecs/kcharsets.h:86:17: note: declared here
# 86 | QTextCodec *codecForName(const QString &n, bool &ok) const;
# | ^~~~~~~~~~~~
# 115| if (!success) {
# 116| // Maybe we got a description name instead
# 117|-> codec = charsets->codecForName(charsets->encodingForName(codecName), success);
# 118| }
# 119|
Error: COMPILER_WARNING (CWE-477): [#def3]
kf5-kconfigwidgets-5.116.0-build/kconfigwidgets-5.116.0/src/kcodecaction.cpp: scope_hint: In member function ‘bool KCodecAction::setCurrentCodec(QTextCodec*)’
kf5-kconfigwidgets-5.116.0-build/kconfigwidgets-5.116.0/src/kcodecaction.cpp:232:65: warning[-Wdeprecated-declarations]: ‘QTextCodec* KCharsets::codecForName(const QString&) const’ is deprecated: Since 5.101. use QTextCodec codecForName or QStringEncoder
# 232 | if (codec == KCharsets::charsets()->codecForName(actions().at(i)->menu()->actions().at(j)->text())) {
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/KF5/KCodecs/kcharsets.h:67:17: note: declared here
# 67 | QTextCodec *codecForName(const QString &name) const;
# | ^~~~~~~~~~~~
# 230| continue;
# 231| }
# 232|-> if (codec == KCharsets::charsets()->codecForName(actions().at(i)->menu()->actions().at(j)->text())) {
# 233| d->currentSubAction = actions().at(i)->menu()->actions().at(j);
# 234| d->currentSubAction->trigger();
Error: CLANG_WARNING: [#def4]
kf5-kconfigwidgets-5.116.0-build/kconfigwidgets-5.116.0/src/kstandardaction.cpp:297:9: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'mf'
# 295| // Set the text before setting the MenuRole, as on OS X setText will do some heuristic role guessing.
# 296| // This ensures user menu items get the intended role out of the list below.
# 297|-> pAction->setText(sLabel);
# 298|
# 299| switch (id) {
Scan Properties
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-190.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | kf5-kconfigwidgets-5.116.0-1.fc41 |
store-results-to | /tmp/tmpyfczdax1/kf5-kconfigwidgets-5.116.0-1.fc41.tar.xz |
time-created | 2024-07-03 13:42:10 |
time-finished | 2024-07-03 13:43:48 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpyfczdax1/kf5-kconfigwidgets-5.116.0-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpyfczdax1/kf5-kconfigwidgets-5.116.0-1.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |