New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Mon May 6 19:26:45 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 1596888:  Null pointer dereferences  (FORWARD_NULL)


________________________________________________________________________________________________________
*** CID 1596888:  Null pointer dereferences  (FORWARD_NULL)
/sc/source/ui/app/scmod.cxx: 233 in ScModule::ConfigurationChanged(utl::ConfigurationBroadcaster *, ConfigurationHints)()
227                     const bool bUnchanged(aViewRenderingOptions == pViewShell->GetViewRenderingData());
228                     if (!bUnchanged)
229                         pViewShell->SetViewRenderingData(aViewRenderingOptions);
230                     ScModelObj* pScModelObj = nullptr;
231                     if (SfxObjectShell* pCurrentSh = SfxObjectShell::Current())
232                         pScModelObj = comphelper::getFromUnoTunnel<ScModelObj>(pCurrentSh->GetModel());
>>>     CID 1596888:  Null pointer dereferences  (FORWARD_NULL)
>>>     Passing null pointer "pScModelObj" to "notifyViewRenderState", which dereferences it.
233                     SfxLokHelper::notifyViewRenderState(pViewShell, pScModelObj);
234                     // In Online, the document color is the one used for the background, contrary to
235                     // Writer and Draw that use the application background color.
236                     pViewShell->libreOfficeKitViewCallback(LOK_CALLBACK_APPLICATION_BACKGROUND_COLOR,
237                             aFillColor.AsRGBHexString().toUtf8());
238     


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



More information about the LibreOffice mailing list