Fwd: New Defects reported by Coverity Scan for Konsole

Kurt Hindenburg kurt.hindenburg at gmail.com
Fri Sep 9 16:32:57 BST 2022


FYI - master today - I thought a fix went in for the bidi issues?

Analysis Summary:
     New defects found: 1
     Defects eliminated: 0

Kurt

> Begin forwarded message:
> 
> 1 new defect(s) introduced to Konsole found with Coverity Scan.
> 
> 
> New defect(s) Reported-by: Coverity Scan
> Showing 1 of 1 defect(s)
> 
> 
> ** CID 356762:  Error handling issues  (CHECKED_RETURN)
> /home/kurthindenburg/Devel/KDE/src/konsole/src/Screen.cpp: 1670 in Konsole::Screen::setSelectionEnd(int, int, bool)()
> 
> 
> ________________________________________________________________________________________________________
> *** CID 356762:  Error handling issues  (CHECKED_RETURN)
> /home/kurthindenburg/Devel/KDE/src/konsole/src/Screen.cpp: 1670 in Konsole::Screen::setSelectionEnd(int, int, bool)()
> 1664     
> 1665             // This should never happen, but it's happening. this is just to gather some information
> 1666             // about the crash.
> 1667             // Do not let this code go to a release.
> 1668             if (_screenLines.size() < line) {
> 1669                 QFile konsoleInfo(QStringLiteral("~/konsole_info_crash_array_out_of_bounds.txt"));
>>>>   CID 356762:  Error handling issues  (CHECKED_RETURN)
>>>>   Calling "open" without checking return value (as is done elsewhere 11 out of 12 times).
> 1670                 konsoleInfo.open(QIODevice::WriteOnly);
> 1671                 QTextStream messages(&konsoleInfo);
> 1672     
> 1673                 messages << "_selBegin" << _selBegin << "\n";
> 1674                 messages << "endPos" << endPos << "\n";
> 1675                 messages << "_selBottomRight" << _selBottomRight << "\n";
> 
> 



More information about the konsole-devel mailing list