Hi,

Please find the latest report on new defect(s) introduced to LibreOffice found 
with Coverity Scan.

2 new defect(s) introduced to LibreOffice found with Coverity Scan.
4 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent 
build analyzed by Coverity Scan.

New defect(s) Reported-by: Coverity Scan
Showing 2 of 2 defect(s)


** CID 1680629:       Null pointer dereferences  (FORWARD_NULL)


_____________________________________________________________________________________________
*** CID 1680629:         Null pointer dereferences  (FORWARD_NULL)
/sd/source/console/PresenterHelpView.cxx: 168             in 
sdext::presenter::PresenterHelpView::PresenterHelpView(const 
com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> &, const 
rtl::Reference<sd::framework::ResourceId> &, const 
rtl::Reference<sd::DrawController> &, 
rtl::Reference<sdext::presenter::PresenterController>)()
162                 mpPresenterController,
163                 mpPresenterController->GetTheme(),
164                 mxWindow,
165                 mxCanvas,
166                 u"HelpViewCloser"_ustr);
167     
>>>     CID 1680629:         Null pointer dereferences  (FORWARD_NULL)
>>>     "ReadHelpStrings" dereferences null "this->mpFont".
168             ReadHelpStrings();
169             Resize();
170         }
171         catch (RuntimeException&)
172         {
173             mxViewId = nullptr;

** CID 1680628:         (NULL_RETURNS)


_____________________________________________________________________________________________
*** CID 1680628:           (NULL_RETURNS)
/sc/source/core/data/queryiter.cxx: 117             in 
ScQueryCellIteratorBase<(ScQueryCellIteratorAccess)1, 
(ScQueryCellIteratorType)0>::PerformQuery()()
111             bAdvanceQuery = true;
112         }
113     
114         const ScColumn* pCol = &(rDoc.maTabs[nTab])->aCol[nCol];
115         while (true)
116         {
>>>     CID 1680628:           (NULL_RETURNS)
>>>     Dereferencing a pointer that might be "nullptr" "pCol->maCells" when 
>>> calling "end".
117             bool bNextColumn = maCurPos.first == pCol->maCells.end();
118             if (!bNextColumn)
119             {
120                 if ((!mbReverseSearch && nRow > maParam.nRow2) || 
(mbReverseSearch && nRow < maParam.nRow1))
121                     bNextColumn = true;
122             }
/sc/source/core/data/queryiter.cxx: 117             in 
ScQueryCellIteratorBase<(ScQueryCellIteratorAccess)0, 
(ScQueryCellIteratorType)0>::PerformQuery()()
111             bAdvanceQuery = true;
112         }
113     
114         const ScColumn* pCol = &(rDoc.maTabs[nTab])->aCol[nCol];
115         while (true)
116         {
>>>     CID 1680628:           (NULL_RETURNS)
>>>     Dereferencing a pointer that might be "nullptr" "pCol->maCells" when 
>>> calling "end".
117             bool bNextColumn = maCurPos.first == pCol->maCells.end();
118             if (!bNextColumn)
119             {
120                 if ((!mbReverseSearch && nRow > maParam.nRow2) || 
(mbReverseSearch && nRow < maParam.nRow1))
121                     bNextColumn = true;
122             }


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, 
https://scan.coverity.com/projects/libreoffice?tab=overview

Reply via email to