kf5-kcompletion-5.116.0-1.fc41

List of Defects

Error: CLANG_WARNING: [#def1]
kf5-kcompletion-5.116.0-build/kcompletion-5.116.0/src/kcompletionbox.cpp:531:13: warning[deadcode.DeadStores]: Value stored to 'dirty' is never read
#  529|           // If there is an unused item, mark as dirty -> less items now
#  530|           if (rowIndex < count()) {
#  531|->             dirty = true;
#  532|           }
#  533|   

Error: CLANG_WARNING: [#def2]
kf5-kcompletion-5.116.0-build/kcompletion-5.116.0/src/klineedit.cpp:740:25: warning[deadcode.DeadStores]: Value stored to 'len' is never read
#  738|                           backspace();
#  739|                           txt = text();
#  740|->                         len = txt.length();
#  741|                       }
#  742|   

Error: CLANG_WARNING: [#def3]
kf5-kcompletion-5.116.0-build/kcompletion-5.116.0/src/klineedit.cpp:1286:13: warning[core.CallAndMessage]: Called C++ object pointer is null
# 1284|           completionBox();
# 1285|   
# 1286|->         if (d->completionBox->isVisible()) {
# 1287|               QListWidgetItem *currentItem = d->completionBox->currentItem();
# 1288|   

Error: CLANG_WARNING: [#def4]
kf5-kcompletion-5.116.0-build/kcompletion-5.116.0/src/klineedit.cpp:1332:9: warning[core.CallAndMessage]: Called C++ object pointer is null
# 1330|       if (create && !d->completionBox) {
# 1331|           setCompletionBox(new KCompletionBox(this));
# 1332|->         d->completionBox->setObjectName(QStringLiteral("completion box"));
# 1333|           d->completionBox->setFont(font());
# 1334|       }

Error: CLANG_WARNING: [#def5]
kf5-kcompletion-5.116.0-build/kcompletion-5.116.0/src/kzoneallocator.cpp:312:18: warning[core.NullDereference]: Access to field 'newer' results in a dereference of a null pointer (loaded from field 'currentBlock')
#  310|       while (d->currentBlock && !d->currentBlock->is_in(ptr)) {
#  311|           d->currentBlock = d->currentBlock->older;
#  312|->         delBlock(d->currentBlock->newer);
#  313|       }
#  314|       d->blockOffset = ((char *)ptr) - d->currentBlock->begin;

Error: CLANG_WARNING: [#def6]
kf5-kcompletion-5.116.0-build/kcompletion-5.116.0/src/kzoneallocator.cpp:314:38: warning[core.NullDereference]: Access to field 'begin' results in a dereference of a null pointer (loaded from field 'currentBlock')
#  312|           delBlock(d->currentBlock->newer);
#  313|       }
#  314|->     d->blockOffset = ((char *)ptr) - d->currentBlock->begin;
#  315|   }

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-245.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namekf5-kcompletion-5.116.0-1.fc41
store-results-to/tmp/tmpvdva0pxm/kf5-kcompletion-5.116.0-1.fc41.tar.xz
time-created2024-07-03 13:42:31
time-finished2024-07-03 13:43:48
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpvdva0pxm/kf5-kcompletion-5.116.0-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpvdva0pxm/kf5-kcompletion-5.116.0-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9