New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Tue Jun 8 07:49:02 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.


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


** CID 1485887:  Error handling issues  (CHECKED_RETURN)
/sc/source/filter/excel/xiescher.cxx: 743 in XclImpDrawObjBase::ConvertFillStyle(SdrObject &, const XclObjFillData &) const()


________________________________________________________________________________________________________
*** CID 1485887:  Error handling issues  (CHECKED_RETURN)
/sc/source/filter/excel/xiescher.cxx: 743 in XclImpDrawObjBase::ConvertFillStyle(SdrObject &, const XclObjFillData &) const()
737                 aMemStrm.WriteUChar( 0xFF ).WriteUChar( 0xFF ).WriteUChar( 0xFF );
738                 aMemStrm.WriteUChar( 0x00 ).WriteUChar( 0x00 ).WriteUChar( 0x00 );
739                 for( size_t nIdx = 0; nIdx < 8; ++nIdx )
740                     aMemStrm.WriteUInt32( pnPattern[ nIdx ] ); // 32-bit little-endian
741                 aMemStrm.Seek( STREAM_SEEK_TO_BEGIN );
742                 Bitmap aBitmap;
>>>     CID 1485887:  Error handling issues  (CHECKED_RETURN)
>>>     Calling "ReadDIB" without checking return value (as is done elsewhere 4 out of 5 times).
743                 ReadDIB(aBitmap, aMemStrm, false);
744     
745                 XOBitmap aXOBitmap(( BitmapEx(aBitmap) ));
746                 aXOBitmap.Bitmap2Array();
747                 if( aXOBitmap.GetBackgroundColor() == COL_BLACK )
748                     ::std::swap( aPattColor, aBackColor );


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3Dqx-V_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJiHo4dxdJiuo4DUbMRiVVNIMy3ZhpJofXW3JqHIOEoBahXy9aKQb6i-2FyEhSL7Y6mVJSLzce5oGnuAt4JjcnhhmnlzJ8NzX-2Bro0fniSBSU0gxk13NdumFrH-2FPtu5hx-2FZDquGWNozJBPdJTiJgvKV-2F9NwJ4-2FpbqpWB-2Fnl9UjfkyhROw-3D



More information about the LibreOffice mailing list