New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Sat May 11 08:34:32 UTC 2024


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


** CID 1597280:  Null pointer dereferences  (NULL_RETURNS)


________________________________________________________________________________________________________
*** CID 1597280:  Null pointer dereferences  (NULL_RETURNS)
/lotuswordpro/source/filter/lwptablelayout.cxx: 935 in LwpTableLayout::SplitRowToCells(XFTable *, const rtl::Reference<XFTable> &, unsigned char, const unsigned char *)()
929         if (pTempRowStyle)
930             *xRowStyle = *pTempRowStyle;
931     
932         for (i=1;i<=nRowNum;i++)
933         {
934             styleName = pTmpTable->GetRow(i)->GetStyleName();
>>>     CID 1597280:  Null pointer dereferences  (NULL_RETURNS)
>>>     Dereferencing a pointer that might be "nullptr" "static_cast<XFRowStyle *>(pXFStyleManager->FindStyle(styleName.operator std::u16string_view()))" when calling "GetRowHeight".
935             fHeight+=static_cast<XFRowStyle*>(pXFStyleManager->FindStyle(styleName))->GetRowHeight();
936         }
937         if (m_nDirection & 0x0030)
938         {
939             xRowStyle->SetMinRowHeight(static_cast<float>(fHeight));
940         }

** CID 1597279:  Error handling issues  (CHECKED_RETURN)
/oox/source/ole/olehelper.cxx: 529 in oox::ole::MSConvertOCXControls::WriteOCXExcelKludgeStream(const com::sun::star::uno::Reference<com::sun::star::frame::XModel> &, const com::sun::star::uno::Reference<com::sun::star::io::XOutputStream> &, const com::sun::star::uno::Reference<com::sun::star::awt::XControlModel> &, const com::sun::star::awt::Size &, rtl::OUString &)()


________________________________________________________________________________________________________
*** CID 1597279:  Error handling issues  (CHECKED_RETURN)
/oox/source/ole/olehelper.cxx: 529 in oox::ole::MSConvertOCXControls::WriteOCXExcelKludgeStream(const com::sun::star::uno::Reference<com::sun::star::frame::XModel> &, const com::sun::star::uno::Reference<com::sun::star::io::XOutputStream> &, const com::sun::star::uno::Reference<com::sun::star::awt::XControlModel> &, const com::sun::star::awt::Size &, rtl::OUString &)()
523     {
524         OleFormCtrlExportHelper exportHelper( comphelper::getProcessComponentContext(), rxModel, rxControlModel );
525         if ( !exportHelper.isValid() )
526             return false;
527         rName = exportHelper.getTypeName();
528         SvGlobalName aName;
>>>     CID 1597279:  Error handling issues  (CHECKED_RETURN)
>>>     Calling "MakeId" without checking return value (as is done elsewhere 6 out of 7 times).
529         aName.MakeId(exportHelper.getGUID());
530         BinaryXOutputStream aOut( xOutStrm, false );
531         OleHelper::exportGuid( aOut, aName );
532         exportHelper.exportControl( xOutStrm, rSize );
533         return true;
534     }


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



More information about the LibreOffice mailing list