New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Sat Nov 20 13:10:59 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.
1 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 1494386:  Null pointer dereferences  (NULL_RETURNS)


________________________________________________________________________________________________________
*** CID 1494386:  Null pointer dereferences  (NULL_RETURNS)
/sd/source/filter/xml/sdtransform.cxx: 301 in <unnamed>::SdTransformOOo2xDocument::transformItemSet(SfxItemSet &, bool)()
295     
296     bool SdTransformOOo2xDocument::transformItemSet( SfxItemSet& rSet, bool bNumbering )
297     {
298         bool bRet = false;
299         if( bNumbering )
300         {
>>>     CID 1494386:  Null pointer dereferences  (NULL_RETURNS)
>>>     Dereferencing a pointer that might be "nullptr" "rSet->GetItem(EE_PARA_LRSPACE, true)" when calling "SvxLRSpaceItem".
301             SvxLRSpaceItem aItem( *rSet.GetItem<SvxLRSpaceItem>( EE_PARA_LRSPACE ) );
302             if( (aItem.GetLeft() != 0) || (aItem.GetTextFirstLineOffset() != 0) )
303             {
304                 aItem.SetLeftValue( 0 );
305                 aItem.SetTextFirstLineOffset( 0 );
306                 rSet.Put( aItem );


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3DG1dX_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJipsqIlaZvSdvCHKtu5JrbOZMxT9fDCx0ERG36scOb5pCUcNl7bo95ISvfwMKpnFjSWig3mBdvvtPDV02RfkYj5BnRSkZN7DqIIR4YJJ6DVlnP5f-2BODZ2e6fdKeFPAa2bElYEvhzQjv95xh3Hfj8HCEnu4onCJaa3a9GsU1ToaOPo-3D



More information about the LibreOffice mailing list