Hi,

Please find the latest report on new defect(s) introduced to LibreOffice found 
with Coverity Scan.

3 new defect(s) introduced to LibreOffice found with Coverity Scan.
38 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 3 of 3 defect(s)


** CID 1353440:    (REVERSE_NEGATIVE)
/stoc/source/inspect/introspection.cxx: 367 in 
<unnamed>::IntrospectionAccessStatic_Impl::getMethodIndex(const rtl::OUString 
&) const()
/stoc/source/inspect/introspection.cxx: 367 in 
<unnamed>::IntrospectionAccessStatic_Impl::getMethodIndex(const rtl::OUString 
&) const()


________________________________________________________________________________________________________
*** CID 1353440:    (REVERSE_NEGATIVE)
/stoc/source/inspect/introspection.cxx: 367 in 
<unnamed>::IntrospectionAccessStatic_Impl::getMethodIndex(const rtl::OUString 
&) const()
361                                         iHashResult = i;
362                                         break;
363                                     }
364                                 }
365                             }
366     
>>>     CID 1353440:    (REVERSE_NEGATIVE)
>>>     You might be using variable "iHashResult" before verifying that it is 
>>> >= 0.
367                             if( iHashResult != -1 )
368                                 break;
369                         }
370                     }
371                 }
372     
/stoc/source/inspect/introspection.cxx: 367 in 
<unnamed>::IntrospectionAccessStatic_Impl::getMethodIndex(const rtl::OUString 
&) const()
361                                         iHashResult = i;
362                                         break;
363                                     }
364                                 }
365                             }
366     
>>>     CID 1353440:    (REVERSE_NEGATIVE)
>>>     You might be using variable "iHashResult" before verifying that it is 
>>> >= 0.
367                             if( iHashResult != -1 )
368                                 break;
369                         }
370                     }
371                 }
372     

** CID 1353439:  Possible Control flow issues  (DEADCODE)
/sc/source/core/tool/interpr1.cxx: 8542 in 
ScInterpreter::DetectSearchType(const rtl::OUString &, const ScDocument *)()


________________________________________________________________________________________________________
*** CID 1353439:  Possible Control flow issues  (DEADCODE)
/sc/source/core/tool/interpr1.cxx: 8542 in 
ScInterpreter::DetectSearchType(const rtl::OUString &, const ScDocument *)()
8536     utl::SearchParam::SearchType ScInterpreter::DetectSearchType( const 
OUString& rStr, const ScDocument* pDoc )
8537     {
8538         if (pDoc)
8539         {
8540             bool bWildcardEnabled = false;  /* TODO: obtain doc option */
8541             if (bWildcardEnabled)
>>>     CID 1353439:  Possible Control flow issues  (DEADCODE)
>>>     Execution cannot reach the expression 
>>> "ScInterpreter::MayBeWildcard(rStr, NULL)" inside this statement: "return 
>>> ScInterpreter::MayBe...".
8542                 return MayBeWildcard( rStr, nullptr) ? 
utl::SearchParam::SRCH_WILDCARD : utl::SearchParam::SRCH_NORMAL;
8543             if (pDoc->GetDocOptions().IsFormulaRegexEnabled())
8544                 return MayBeRegExp( rStr, nullptr) ? 
utl::SearchParam::SRCH_REGEXP : utl::SearchParam::SRCH_NORMAL;
8545         }
8546         else
8547         {

** CID 1353438:  Control flow issues  (DEADCODE)
/idl/source/prj/parser.cxx: 429 in 
SvIdlParser::ReadInterfaceOrShellMethodOrAttribute(SvMetaAttribute &)()


________________________________________________________________________________________________________
*** CID 1353438:  Control flow issues  (DEADCODE)
/idl/source/prj/parser.cxx: 429 in 
SvIdlParser::ReadInterfaceOrShellMethodOrAttribute(SvMetaAttribute &)()
423         if( bOk && ReadIf( '[' ) )
424         {
425             Read( ']' );
426         }
427     
428         if( !bOk )
>>>     CID 1353438:  Control flow issues  (DEADCODE)
>>>     Execution cannot reach this statement: "this->rInStm->Seek(nTokPos);".
429             rInStm.Seek( nTokPos );
430         return bOk;
431     }
432     
433     SvMetaClass * SvIdlParser::ReadKnownClass()
434     {


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, 
https://scan.coverity.com/projects/libreoffice?tab=overview

To manage Coverity Scan email notifications for 
"libreoffice@lists.freedesktop.org", click 
https://scan.coverity.com/subscriptions/edit?email=libreoffice%40lists.freedesktop.org&token=d6481d718a775246b2340f282ebe5939

_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to