New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Sat May 6 14:21:52 UTC 2023


Hi,

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

3 new defect(s) introduced to LibreOffice found with Coverity Scan.


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


** CID 1529287:  Null pointer dereferences  (FORWARD_NULL)


________________________________________________________________________________________________________
*** CID 1529287:  Null pointer dereferences  (FORWARD_NULL)
/vcl/source/filter/graphicfilter.cxx: 917 in GraphicFilter::ImportUnloadedGraphic(SvStream &, unsigned long, const Size *)()
911             if( nStatus == ERRCODE_NONE )
912             {
913                 bool bAnimated = false;
914                 Size aLogicSize;
915                 if (eLinkType == GfxLinkType::NativeGif)
916                 {
>>>     CID 1529287:  Null pointer dereferences  (FORWARD_NULL)
>>>     "getAsStream" dereferences null "aGraphicContent.mpImpl".
917                     std::shared_ptr<SvStream> pMemoryStream = aGraphicContent.getAsStream();
918                     bAnimated = IsGIFAnimated(*pMemoryStream, aLogicSize);
919                     if (!pSizeHint && aLogicSize.getWidth() && aLogicSize.getHeight())
920                     {
921                         pSizeHint = &aLogicSize;
922                     }

** CID 1529286:  Null pointer dereferences  (FORWARD_NULL)
/sw/source/ui/index/swuiidxmrk.cxx: 1700 in <unnamed>::SwCreateAuthEntryDlg_Impl::SwCreateAuthEntryDlg_Impl(weld::Window *, const rtl::OUString *, SwWrtShell &, bool, bool)()


________________________________________________________________________________________________________
*** CID 1529286:  Null pointer dereferences  (FORWARD_NULL)
/sw/source/ui/index/swuiidxmrk.cxx: 1700 in <unnamed>::SwCreateAuthEntryDlg_Impl::SwCreateAuthEntryDlg_Impl(weld::Window *, const rtl::OUString *, SwWrtShell &, bool, bool)()
1694                 m_pBoxes[nIndex] = m_aBuilders.back()->weld_box("vbox");
1695                 m_pEdits[nIndex] = m_aBuilders.back()->weld_entry("entry");
1696     
1697                 if (AUTH_FIELD_TARGET_URL == aCurInfo.nToxField)
1698                 {
1699                     m_xTargetURLField = m_pEdits[nIndex].get();
>>>     CID 1529286:  Null pointer dereferences  (FORWARD_NULL)
>>>     Attempting to access the managed object of an empty smart pointer "this->m_xTargetTypeListBox".
1700                     m_xTargetURLField->set_sensitive(
1701                         m_xTargetTypeListBox->get_active() == SwAuthorityField::TargetType::UseTargetURL);
1702                 }
1703     
1704                 if (bLeft)
1705                     m_aOrigContainers.back()->move(m_pBoxes[nIndex].get(), m_xLeft.get());

** CID 1529285:  Uninitialized members  (UNINIT_CTOR)
/sw/source/ui/index/swuiidxmrk.cxx: 1776 in <unnamed>::SwCreateAuthEntryDlg_Impl::SwCreateAuthEntryDlg_Impl(weld::Window *, const rtl::OUString *, SwWrtShell &, bool, bool)()


________________________________________________________________________________________________________
*** CID 1529285:  Uninitialized members  (UNINIT_CTOR)
/sw/source/ui/index/swuiidxmrk.cxx: 1776 in <unnamed>::SwCreateAuthEntryDlg_Impl::SwCreateAuthEntryDlg_Impl(weld::Window *, const rtl::OUString *, SwWrtShell &, bool, bool)()
1770             else
1771                 ++nRightRow;
1772             bLeft = !bLeft;
1773         }
1774         assert(m_xTypeListBox && "this will exist after the loop");
1775         EnableHdl(*m_xTypeListBox);
>>>     CID 1529285:  Uninitialized members  (UNINIT_CTOR)
>>>     Non-static class member "m_xTargetURLField" is not initialized in this constructor nor in any functions that it calls.
1776     }
1777     
1778     OUString  SwCreateAuthEntryDlg_Impl::GetEntryText(ToxAuthorityField eField) const
1779     {
1780         if( AUTH_FIELD_AUTHORITY_TYPE == eField )
1781         {


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3DoL2R_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJiRTJJu1ykOYVqWd4H4tAh3cSLJQGI7hs74givHHGVjiWFhgwZvHJ9cLU-2BD9P1tL3VqKEDN-2FEdRDxERiKua4zyebr-2BfBmw6AG4Oa4aSfMPd3Tavy-2FQG9W95cAeQKSKjXOWP7iwydq5jwRXH-2BJk6IRu4rZDfNLI1cnWdxbzqyEytok-3D



More information about the LibreOffice mailing list