New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Fri Jul 30 07:51:09 UTC 2021


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.
1 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 1489568:  Null pointer dereferences  (NULL_RETURNS)


________________________________________________________________________________________________________
*** CID 1489568:  Null pointer dereferences  (NULL_RETURNS)
/sc/source/ui/docshell/dbdocfun.cxx: 605 in ScDBDocFunc::Sort(short, const ScSortParam &, bool, bool, bool)()
599             SfxViewShell* pViewShell = SfxViewShell::GetFirst();
600             while (pViewShell)
601             {
602                 ScTabViewShell* pTabViewShell = dynamic_cast<ScTabViewShell*>(pViewShell);
603                 if (pTabViewShell && pTabViewShell->GetDocId() == pSomeViewForThisDoc->GetDocId())
604                 {
>>>     CID 1489568:  Null pointer dereferences  (NULL_RETURNS)
>>>     Dereferencing a pointer that might be "nullptr" "pTabViewShell->GetViewData()->GetLOKHeightHelper(nTab)" when calling "invalidateByIndex".
605                     pTabViewShell->GetViewData().GetLOKHeightHelper(nTab)->invalidateByIndex(nStartRow);
606                 }
607                 pViewShell = SfxViewShell::GetNext(*pViewShell);
608             }
609     
610             ScTabViewShell::notifyAllViewsSheetGeomInvalidation(

** CID 1399290:    (UNCAUGHT_EXCEPT)
/sw/source/uibase/lingu/hhcwrp.cxx: 110 in SwHHCWrapper::~SwHHCWrapper()()
/sw/source/uibase/lingu/hhcwrp.cxx: 110 in SwHHCWrapper::~SwHHCWrapper()()
/sw/source/uibase/lingu/hhcwrp.cxx: 110 in SwHHCWrapper::~SwHHCWrapper()()
/sw/source/uibase/lingu/hhcwrp.cxx: 110 in SwHHCWrapper::~SwHHCWrapper()()


________________________________________________________________________________________________________
*** CID 1399290:    (UNCAUGHT_EXCEPT)
/sw/source/uibase/lingu/hhcwrp.cxx: 110 in SwHHCWrapper::~SwHHCWrapper()()
104         , m_bIsSelection( bSelection )
105         , m_bStartDone( bOther || bStart )
106         , m_bEndDone( false )
107     {
108     }
109     
>>>     CID 1399290:    (UNCAUGHT_EXCEPT)
>>>     An exception of type "com::sun::star::uno::RuntimeException" is thrown but the throw list "noexcept" doesn't allow it to be thrown. This will cause a call to unexpected() which usually calls terminate().
110     SwHHCWrapper::~SwHHCWrapper()
111     {
112         m_pConvArgs.reset();
113     
114         SwViewShell::SetCareDialog(nullptr);
115     
/sw/source/uibase/lingu/hhcwrp.cxx: 110 in SwHHCWrapper::~SwHHCWrapper()()
104         , m_bIsSelection( bSelection )
105         , m_bStartDone( bOther || bStart )
106         , m_bEndDone( false )
107     {
108     }
109     
>>>     CID 1399290:    (UNCAUGHT_EXCEPT)
>>>     An exception of type "com::sun::star::uno::RuntimeException" is thrown but the throw list "noexcept" doesn't allow it to be thrown. This will cause a call to unexpected() which usually calls terminate().
110     SwHHCWrapper::~SwHHCWrapper()
111     {
112         m_pConvArgs.reset();
113     
114         SwViewShell::SetCareDialog(nullptr);
115     
/sw/source/uibase/lingu/hhcwrp.cxx: 110 in SwHHCWrapper::~SwHHCWrapper()()
104         , m_bIsSelection( bSelection )
105         , m_bStartDone( bOther || bStart )
106         , m_bEndDone( false )
107     {
108     }
109     
>>>     CID 1399290:    (UNCAUGHT_EXCEPT)
>>>     An exception of type "com::sun::star::uno::RuntimeException" is thrown but the throw list "noexcept" doesn't allow it to be thrown. This will cause a call to unexpected() which usually calls terminate().
110     SwHHCWrapper::~SwHHCWrapper()
111     {
112         m_pConvArgs.reset();
113     
114         SwViewShell::SetCareDialog(nullptr);
115     
/sw/source/uibase/lingu/hhcwrp.cxx: 110 in SwHHCWrapper::~SwHHCWrapper()()
104         , m_bIsSelection( bSelection )
105         , m_bStartDone( bOther || bStart )
106         , m_bEndDone( false )
107     {
108     }
109     
>>>     CID 1399290:    (UNCAUGHT_EXCEPT)
>>>     An exception of type "com::sun::star::uno::RuntimeException" is thrown but the throw list "noexcept" doesn't allow it to be thrown. This will cause a call to unexpected() which usually calls terminate().
110     SwHHCWrapper::~SwHHCWrapper()
111     {
112         m_pConvArgs.reset();
113     
114         SwViewShell::SetCareDialog(nullptr);
115     


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3DPY7m_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJietkHBXvmLgytlgz4Pdt1z6bc8FrDFUEFv-2BizcJZvNLeBXj0GwbYMhBNjPcLvFTsVwCIH2cp2VzcFyBEcyAHM6kux6GvVhdZnYAKr7yTp-2FAGQ-2BwEc7X-2B3TbSoJSAmFdtKR22Yy5t71Tnap3ejA95NBJRKFsgxzsn0887UfIAIwbY-3D



More information about the LibreOffice mailing list