New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Fri May 24 17:17:51 UTC 2024


Hi,

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

1 new defect(s) introduced to LibreOffice found with Coverity Scan.
2 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 1 of 1 defect(s)


** CID 1598442:    (NULL_RETURNS)


________________________________________________________________________________________________________
*** CID 1598442:    (NULL_RETURNS)
/sc/source/ui/undo/undotab.cxx: 478 in ScUndoDeleteTab::Redo()()
472             pViewShell->SetTabNo( lcl_GetVisibleTabBefore( rDoc, theTabs[0] ), true );
473     }
474     
475     void ScUndoDeleteTab::Redo()
476     {
477         ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell();
>>>     CID 1598442:    (NULL_RETURNS)
>>>     Dereferencing a pointer that might be "nullptr" "pViewShell" when calling "SetTabNo".
478         pViewShell->SetTabNo( lcl_GetVisibleTabBefore( pDocShell->GetDocument(), theTabs.front() ) );
479     
480         RedoSdrUndoAction( pDrawUndo.get() );       // Draw Redo first
481     
482         pDocShell->SetInUndo( true );               //! BeginRedo
483         bDrawIsInUndo = true;
/sc/source/ui/undo/undotab.cxx: 494 in ScUndoDeleteTab::Redo()()
488         SetChangeTrack();
489     
490         if (comphelper::LibreOfficeKit::isActive() && !theTabs.empty())
491         {
492             ScDocument& rDoc = pDocShell->GetDocument();
493             lcl_OnTabsChanged(pViewShell, rDoc, theTabs[0]);
>>>     CID 1598442:    (NULL_RETURNS)
>>>     Dereferencing a pointer that might be "nullptr" "pViewShell" when calling "lcl_UndoCommandResult".
494             lcl_UndoCommandResult(pViewShell, ".uno:Redo", "ScUndoDeleteTab", &theTabs);
495         }
496     
497         //  SetTabNo(...,sal_True) for all views to sync with drawing layer pages
498         pDocShell->Broadcast( SfxHint( SfxHintId::ScForceSetTab ) );
499     }


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=u001.AxU2LYlgjL6eX23u9ErQy-2BKADyCpvUKOL6EWmZljiu6VvXBlQRUbS683tC8265rGNPXqJ1ffcoLZCnTuJFQbNcTEkb4XaEQkzovKhJ5DB3c-3D8GvR_A9M4dSy7guk8NP6DcfgslOyvJRzavztVIKj6nRqYjYpWom7SJFyX0y710bz0kUGtRs21SpJYxmEuHcCNhcR6c2tEPVHJ65guYKM4Ndwr1MNRYtDZQIeZ4FHqrwgR8A6a-2FMtHkLxB9P7Tg9BlmL8Gb9lHdjjuhjwxanr82a-2BkpDGYn65fZ6MLs77Qcl3YijxYNKlME2ihprY0BQiI4eijTqQqpdrlmTegCjwXIpHHorM-3D



More information about the LibreOffice mailing list