kf6-ktexteditor-6.3.0-1.fc41
List of Defects
Error: CLANG_WARNING: [#def1]
kf6-ktexteditor-6.3.0-build/ktexteditor-6.3.0/src/buffer/katesecuretextbuffer.cpp:24:1: warning[cplusplus.NewDeleteLeaks]: Potential memory leak
# 22| #include <QTemporaryFile>
# 23|
# 24|-> KAUTH_HELPER_MAIN("org.kde.ktexteditor6.katetextbuffer", SecureTextBuffer)
# 25|
# 26| ActionReply SecureTextBuffer::savefile(const QVariantMap &args)
Error: COMPILER_WARNING (CWE-477): [#def2]
kf6-ktexteditor-6.3.0-build/ktexteditor-6.3.0/src/dialogs/katedialogs.cpp: scope_hint: In constructor ‘KateViewDefaultsConfig::KateViewDefaultsConfig(QWidget*)’
kf6-ktexteditor-6.3.0-build/ktexteditor-6.3.0/src/dialogs/katedialogs.cpp:775:50: warning[-Wdeprecated-declarations]: ‘void QCheckBox::stateChanged(int)’ is deprecated: Use checkStateChanged() instead
# 775 | connect(textareaUi->cbxWordWrap, &QCheckBox::stateChanged, this, a);
# | ^~~~~~~~~~~~
/usr/include/qt6/QtWidgets/QCheckBox:1: included_from: Included from here.
kf6-ktexteditor-6.3.0-build/ktexteditor-6.3.0/redhat-linux-build/src/ui_bordersappearanceconfigwidget.h:16: included_from: Included from here.
kf6-ktexteditor-6.3.0-build/ktexteditor-6.3.0/src/dialogs/katedialogs.cpp:33: included_from: Included from here.
/usr/include/qt6/QtWidgets/qcheckbox.h:41:10: note: declared here
# 41 | void stateChanged(int);
# | ^~~~~~~~~~~~
# 773| ui->sbDynamicWordWrapDepth->setEnabled(cbx->isChecked());
# 774| };
# 775|-> connect(textareaUi->cbxWordWrap, &QCheckBox::stateChanged, this, a);
# 776| a();
# 777| auto b = [cbx = textareaUi->cbxIndentWrappedLines, sb = textareaUi->sbDynamicWordWrapDepth]() {
Error: COMPILER_WARNING (CWE-477): [#def3]
kf6-ktexteditor-6.3.0-build/ktexteditor-6.3.0/src/dialogs/katedialogs.cpp:781:60: warning[-Wdeprecated-declarations]: ‘void QCheckBox::stateChanged(int)’ is deprecated: Use checkStateChanged() instead
# 781 | connect(textareaUi->cbxIndentWrappedLines, &QCheckBox::stateChanged, this, b);
# | ^~~~~~~~~~~~
/usr/include/qt6/QtWidgets/qcheckbox.h:41:10: note: declared here
# 41 | void stateChanged(int);
# | ^~~~~~~~~~~~
# 779| };
# 780| b();
# 781|-> connect(textareaUi->cbxIndentWrappedLines, &QCheckBox::stateChanged, this, b);
# 782| observeChanges(textareaUi->cbxIndentWrappedLines);
# 783| observeChanges(textareaUi->sbDynamicWordWrapDepth);
Error: CLANG_WARNING: [#def4]
kf6-ktexteditor-6.3.0-build/ktexteditor-6.3.0/src/render/katelayoutcache.cpp:135:21: warning[deadcode.DeadStores]: Value stored to 'found' is never read
# 133| const KateTextLayout &t = l->viewLine(_viewLine);
# 134| if (t.startCol() >= startPos.column() || _viewLine == l->viewLineCount() - 1) {
# 135|-> found = true;
# 136| break;
# 137| }
Error: CLANG_WARNING: [#def5]
kf6-ktexteditor-6.3.0-build/ktexteditor-6.3.0/src/utils/katevariableexpansionmanager.cpp:388:1: warning[cplusplus.NewDeleteLeaks]: Potential leak of memory pointed to by 'dlg'
# 386| }
# 387| }
# 388|-> }
# 389|
# 390| // kate: space-indent on; indent-width 4; replace-tabs on;
Error: CLANG_WARNING: [#def6]
kf6-ktexteditor-6.3.0-build/ktexteditor-6.3.0/src/vimode/keyparser.cpp:569:37: warning[deadcode.DeadStores]: Although the value stored to 'endOfBlock' is used in the enclosing expression, the value is never actually read from 'endOfBlock'
# 567| } else {
# 568| int endOfBlock = keys.indexOf(QLatin1Char('>'));
# 569|-> if (endOfBlock -= -1) {
# 570| endOfBlock = keys.length() - 1;
# 571| }
Error: CLANG_WARNING: [#def7]
kf6-ktexteditor-6.3.0-build/ktexteditor-6.3.0/src/vimode/keyparser.cpp:570:37: warning[deadcode.DeadStores]: Value stored to 'endOfBlock' is never read
# 568| int endOfBlock = keys.indexOf(QLatin1Char('>'));
# 569| if (endOfBlock -= -1) {
# 570|-> endOfBlock = keys.length() - 1;
# 571| }
# 572| encodedSequence.clear();
Error: CLANG_WARNING: [#def8]
kf6-ktexteditor-6.3.0-build/ktexteditor-6.3.0/src/vimode/keyparser.cpp:588:29: warning[deadcode.DeadStores]: Although the value stored to 'endOfBlock' is used in the enclosing expression, the value is never actually read from 'endOfBlock'
# 586| } else {
# 587| int endOfBlock = keys.indexOf(QLatin1Char('>'));
# 588|-> if (endOfBlock -= -1) {
# 589| endOfBlock = keys.length() - 1;
# 590| }
Error: CLANG_WARNING: [#def9]
kf6-ktexteditor-6.3.0-build/ktexteditor-6.3.0/src/vimode/keyparser.cpp:589:29: warning[deadcode.DeadStores]: Value stored to 'endOfBlock' is never read
# 587| int endOfBlock = keys.indexOf(QLatin1Char('>'));
# 588| if (endOfBlock -= -1) {
# 589|-> endOfBlock = keys.length() - 1;
# 590| }
# 591| encodedSequence.clear();
Error: CLANG_WARNING: [#def10]
kf6-ktexteditor-6.3.0-build/ktexteditor-6.3.0/src/vimode/modes/modebase.cpp:206:17: warning[deadcode.DeadStores]: Value stored to 'c' is never read
# 204| return KTextEditor::Cursor::invalid();
# 205| } else if (l >= doc()->lines() - 1) {
# 206|-> c = qMax(line.length() - 1, 0);
# 207| return KTextEditor::Cursor::invalid();
# 208| } else {
Error: CLANG_WARNING: [#def11]
kf6-ktexteditor-6.3.0-build/ktexteditor-6.3.0/src/vimode/modes/modebase.cpp:348:17: warning[deadcode.DeadStores]: Value stored to 'c' is never read
# 346| continue;
# 347| } else {
# 348|-> c = 0;
# 349| return KTextEditor::Cursor::invalid();
# 350| }
Error: CLANG_WARNING: [#def12]
kf6-ktexteditor-6.3.0-build/ktexteditor-6.3.0/src/vimode/modes/modebase.cpp:502:17: warning[deadcode.DeadStores]: Value stored to 'c' is never read
# 500| return KTextEditor::Cursor::invalid();
# 501| } else if (l >= doc()->lines() - 1) {
# 502|-> c = line.length() - 1;
# 503| return KTextEditor::Cursor::invalid();
# 504| } else {
Error: CLANG_WARNING: [#def13]
kf6-ktexteditor-6.3.0-build/ktexteditor-6.3.0/src/vimode/modes/modebase.cpp:537:17: warning[deadcode.DeadStores]: Value stored to 'c' is never read
# 535| return KTextEditor::Cursor::invalid();
# 536| } else if (l >= doc()->lines() - 1) {
# 537|-> c = line.length() - 1;
# 538| return KTextEditor::Cursor::invalid();
# 539| } else {
Error: CLANG_WARNING: [#def14]
kf6-ktexteditor-6.3.0-build/ktexteditor-6.3.0/src/vimode/modes/normalvimode.cpp:3226:9: warning[deadcode.DeadStores]: Value stored to 'prev' is never read
# 3224| }
# 3225| linenum = i;
# 3226|-> prev = column;
# 3227| column = 0;
# 3228| }
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-143.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | kf6-ktexteditor-6.3.0-1.fc41 |
store-results-to | /tmp/tmpv8b0hpgo/kf6-ktexteditor-6.3.0-1.fc41.tar.xz |
time-created | 2024-07-03 14:19:06 |
time-finished | 2024-07-03 14:26:45 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpv8b0hpgo/kf6-ktexteditor-6.3.0-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpv8b0hpgo/kf6-ktexteditor-6.3.0-1.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |