New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Fri Oct 9 07:24:22 UTC 2020


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.


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


** CID 1467972:  Error handling issues  (CHECKED_RETURN)
/sw/source/core/table/swnewtable.cxx: 2188 in SwTable::ConvertSubtableBox(unsigned short, unsigned short)()


________________________________________________________________________________________________________
*** CID 1467972:  Error handling issues  (CHECKED_RETURN)
/sw/source/core/table/swnewtable.cxx: 2188 in SwTable::ConvertSubtableBox(unsigned short, unsigned short)()
2182                 {
2183                     lastSize.SetHeightSizeType(SwFrameSize::Minimum);
2184                 }
2185                 pNewLine->GetFrameFormat()->SetFormatAttr(lastSize);
2186             }
2187             SfxPoolItem const* pRowBrush(nullptr);
>>>     CID 1467972:  Error handling issues  (CHECKED_RETURN)
>>>     Calling "GetItemState" without checking return value (as is done elsewhere 54 out of 56 times).
2188             rSubLineFormat.GetItemState(RES_BACKGROUND, true, &pRowBrush);
2189             GetTabLines().insert(GetTabLines().begin() + nRow + i, pNewLine);
2190             for (size_t j = 0; j < pSourceLine->GetTabBoxes().size(); ++j)
2191             {
2192                 if (j == nBox)
2193                 {

** CID 1467971:  Uninitialized members  (UNINIT_CTOR)
/writerfilter/source/dmapper/DomainMapper_Impl.cxx: 347 in writerfilter::dmapper::DomainMapper_Impl::DomainMapper_Impl(writerfilter::dmapper::DomainMapper &, const com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> &, const com::sun::star::uno::Reference<com::sun::star::lang::XComponent> &, writerfilter::dmapper::SourceDocumentType, const utl::MediaDescriptor &)()


________________________________________________________________________________________________________
*** CID 1467971:  Uninitialized members  (UNINIT_CTOR)
/writerfilter/source/dmapper/DomainMapper_Impl.cxx: 347 in writerfilter::dmapper::DomainMapper_Impl::DomainMapper_Impl(writerfilter::dmapper::DomainMapper &, const com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> &, const com::sun::star::uno::Reference<com::sun::star::lang::XComponent> &, writerfilter::dmapper::SourceDocumentType, const utl::MediaDescriptor &)()
341         getTableManager( ).startLevel();
342         m_bUsingEnhancedFields = !utl::ConfigManager::IsFuzzing() && officecfg::Office::Common::Filter::Microsoft::Import::ImportWWFieldsAsEnhancedFields::get(m_xComponentContext);
343     
344         m_pSdtHelper = new SdtHelper(*this);
345     
346         m_aRedlines.push(std::vector<RedlineParamsPtr>());
>>>     CID 1467971:  Uninitialized members  (UNINIT_CTOR)
>>>     Non-static class member "m_bFrameDirectionSet" is not initialized in this constructor nor in any functions that it calls.
347     }
348     
349     
350     DomainMapper_Impl::~DomainMapper_Impl()
351     {
352         ChainTextFrames();


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3D9-ff_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJiIfvVZU-2BEbYf42r6-2BCIyoflP8f8QWMYJFlnycAt5eyKmwh8c5wz8PvRStXqBZgoMXhcNJFVxvT3DpH4SjXB6PdRNbkVYBRrz4yfRFcFiLbr-2FYtNgViR-2Frt7h68r4HuCzwMjadBkxVIf9so34JTcps4EsliuDw3KamsmSnvWa0IhCPI-2FJIZYho-2F-2B0MZZQP8Zpf



More information about the LibreOffice mailing list