If you click on the Remove Suppressions button in the GUI without actually selecting a suppression, the GUI crashes.
Thanks! I have created a ticket at https://trac.cppcheck.net/ticket/8814
I would like to offer another bit of information for the software package “cppcheck-gui 1.85-14.d_t.1”.
… Thread 1 "cppcheck-gui" received signal SIGSEGV, Segmentation fault. ProjectFileDialog::removeSuppression (this=0x7fffffffc550) at projectfiledialog.cpp:673 673 int suppressionIndex = getSuppressionIndex(item->text());
Would you like to integrate the following source code adjustment?
--- a/gui/projectfiledialog.cpp +++ b/gui/projectfiledialog.cpp @@ -651,6 +651,9 @@ void ProjectFileDialog::removeSuppression() { const int row = mUI.mListSuppressions->currentRow(); QListWidgetItem *item = mUI.mListSuppressions->takeItem(row); + if (!item) + return; + int suppressionIndex = getSuppressionIndex(item->text()); if (suppressionIndex >= 0) mSuppressions.removeAt(suppressionIndex);
It looks good. Please send a PR.
A small software update was integrated.
Log in to post a comment.
If you click on the Remove Suppressions button in the GUI without actually selecting a suppression, the GUI crashes.
Thanks! I have created a ticket at https://trac.cppcheck.net/ticket/8814
I would like to offer another bit of information for the software package “cppcheck-gui 1.85-14.d_t.1”.
Would you like to integrate the following source code adjustment?
It looks good. Please send a PR.
A small software update was integrated.