New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Fri Feb 12 07:59:53 UTC 2021


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.
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 1 of 1 defect(s)


** CID 1472878:  Null pointer dereferences  (FORWARD_NULL)


________________________________________________________________________________________________________
*** CID 1472878:  Null pointer dereferences  (FORWARD_NULL)
/sw/source/core/doc/docbm.cxx: 1543 in sw::mark::MarkManager::LOKUpdateActiveField(SfxViewShell *)()
1537     
1538             if (m_pLastActiveFieldmark)
1539             {
1540                 if (m_pLastActiveFieldmark->GetFieldname() == ODF_FORMDROPDOWN)
1541                 {
1542                     auto pDrowDown = dynamic_cast<::sw::mark::DropDownFieldmark*>(m_pLastActiveFieldmark);
>>>     CID 1472878:  Null pointer dereferences  (FORWARD_NULL)
>>>     Passing null pointer "pDrowDown" to "SendLOKShowMessage", which dereferences it.
1543                     pDrowDown->SendLOKShowMessage(pViewShell);
1544                 }
1545             }
1546             else
1547             {
1548                 // Check whether we have any drop down fieldmark at all.


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3DFgQe_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJiMeZoV7fVQ-2FlsfEFgEOjG7F-2FF3YN3UUiAPRwS98xuTiHAhHN1M52-2F3eyiu7-2FxMSSPT-2FrO8WLXZREeFRfxrEs7H0d4J-2F3vmJ-2Fh9gWMYScTsEvPeA-2BVW9MionRUNwPvrBCeizLMpvUnXiJSOiMTnPkR77xEX4YoW4vrf3E02DCd5qj37Zu-2F5CyR2s3213hBkvcH



More information about the LibreOffice mailing list