About coverity 988424 (svdfppt.cxx from filter module)

julien2412 serval2412 at yahoo.fr
Sat Mar 16 14:03:11 PDT 2013


Hello,

Scan coverity detected this: 
CID 988424 (#1 of 1): Logically dead code (DEADCODE)dead_error_line:
Execution cannot reach this expression "nExtBuInd + nExtParaNibble <
aStyleTextProp9->size()" inside statement "if (nExtParaNibble && nExtB...". 

Indeed, we have these lines:
   5026     if ( nExtParaPos )
   5027     {
   5028         sal_uInt32 nExtBuInd = nMask & 0x3c00;
   5029         sal_uInt32  nExtParaNibble = 0;
   5030         if ( nExtBuInd )
   5031             nExtBuInd = ( aSet.mnFlags & 0x3c00 ) >> 10;
   5032         if ( nExtBuInd < aStyleTextProp9.size() )
   5033         {
   5034             if ( nExtParaNibble && ( ( nExtBuInd + nExtParaNibble )
< aStyleTextProp9.size() ) )
   5035                 nExtBuInd += nExtParaNibble;

(see
http://opengrok.libreoffice.org/xref/core/filter/source/msfilter/svdfppt.cxx#5026)

Any idea what should be done?

Julien



--
View this message in context: http://nabble.documentfoundation.org/About-coverity-988424-svdfppt-cxx-from-filter-module-tp4044238.html
Sent from the Dev mailing list archive at Nabble.com.


More information about the LibreOffice mailing list