New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Fri Mar 11 12:21:18 UTC 2022


Hi,

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

4 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 4 of 4 defect(s)


** CID 1502952:    (DEADCODE)
/sw/source/filter/ww8/docxattributeoutput.cxx: 8553 in DocxAttributeOutput::WritePostitFields()()
/sw/source/filter/ww8/docxattributeoutput.cxx: 8553 in DocxAttributeOutput::WritePostitFields()()


________________________________________________________________________________________________________
*** CID 1502952:    (DEADCODE)
/sw/source/filter/ww8/docxattributeoutput.cxx: 8553 in DocxAttributeOutput::WritePostitFields()()
8547                          ? "Author" + OUString::number( GetExport().GetInfoID(f->GetPar1()) )
8548                          : f->GetPar1(),
8549                     FSNS( XML_w, XML_initials ), bRemovePersonalInfo
8550                          ? OUString::number( GetExport().GetInfoID(f->GetInitials()) )
8551                          : f->GetInitials() );
8552             else
>>>     CID 1502952:    (DEADCODE)
>>>     Execution cannot reach this statement: "<temporary>.OUString(rtl::O...".
8553                 m_pSerializer->startElementNS( XML_w, XML_comment, FSNS( XML_w, XML_id ), idstr,
8554                     FSNS( XML_w, XML_author ), bRemovePersonalInfo
8555                          ? "Author" + OUString::number( GetExport().GetInfoID(f->GetPar1()) )
8556                          : f->GetPar1(),
8557                     FSNS( XML_w, XML_date ), DateTimeToOString( aDateTime ),
8558                     FSNS( XML_w, XML_initials ), bRemovePersonalInfo
/sw/source/filter/ww8/docxattributeoutput.cxx: 8553 in DocxAttributeOutput::WritePostitFields()()
8547                          ? "Author" + OUString::number( GetExport().GetInfoID(f->GetPar1()) )
8548                          : f->GetPar1(),
8549                     FSNS( XML_w, XML_initials ), bRemovePersonalInfo
8550                          ? OUString::number( GetExport().GetInfoID(f->GetInitials()) )
8551                          : f->GetInitials() );
8552             else
>>>     CID 1502952:    (DEADCODE)
>>>     Execution cannot reach this statement: "<temporary>.OUString(std::e...".
8553                 m_pSerializer->startElementNS( XML_w, XML_comment, FSNS( XML_w, XML_id ), idstr,
8554                     FSNS( XML_w, XML_author ), bRemovePersonalInfo
8555                          ? "Author" + OUString::number( GetExport().GetInfoID(f->GetPar1()) )
8556                          : f->GetPar1(),
8557                     FSNS( XML_w, XML_date ), DateTimeToOString( aDateTime ),
8558                     FSNS( XML_w, XML_initials ), bRemovePersonalInfo

** CID 1502951:    (DEADCODE)
/sw/source/filter/ww8/docxattributeoutput.cxx: 3571 in DocxAttributeOutput::Redline(const SwRedlineData *)()
/sw/source/filter/ww8/docxattributeoutput.cxx: 3525 in DocxAttributeOutput::Redline(const SwRedlineData *)()


________________________________________________________________________________________________________
*** CID 1502951:    (DEADCODE)
/sw/source/filter/ww8/docxattributeoutput.cxx: 3571 in DocxAttributeOutput::Redline(const SwRedlineData *)()
3565                 m_pSerializer->startElementNS( XML_w, XML_pPrChange,
3566                     FSNS( XML_w, XML_id ), aId,
3567                     FSNS( XML_w, XML_author ), bRemovePersonalInfo
3568                         ? "Author" + OUString::number( GetExport().GetInfoID(rAuthor) )
3569                         : rAuthor );
3570             else
>>>     CID 1502951:    (DEADCODE)
>>>     Execution cannot reach this statement: "<temporary>.OUString(std::e...".
3571                 m_pSerializer->startElementNS( XML_w, XML_pPrChange,
3572                     FSNS( XML_w, XML_id ), aId,
3573                     FSNS( XML_w, XML_author ), bRemovePersonalInfo
3574                         ? "Author" + OUString::number( GetExport().GetInfoID(rAuthor) )
3575                         : rAuthor,
3576                     FSNS( XML_w, XML_date ), DateTimeToOString( aDateTime ) );
/sw/source/filter/ww8/docxattributeoutput.cxx: 3525 in DocxAttributeOutput::Redline(const SwRedlineData *)()
3519                 m_pSerializer->startElementNS( XML_w, XML_rPrChange,
3520                     FSNS( XML_w, XML_id ), aId,
3521                     FSNS( XML_w, XML_author ), bRemovePersonalInfo
3522                         ? "Author" + OUString::number( GetExport().GetInfoID(rAuthor) )
3523                         : rAuthor );
3524             else
>>>     CID 1502951:    (DEADCODE)
>>>     Execution cannot reach this statement: "<temporary>.OUString(std::e...".
3525                 m_pSerializer->startElementNS( XML_w, XML_rPrChange,
3526                     FSNS( XML_w, XML_id ), aId,
3527                     FSNS( XML_w, XML_author ), bRemovePersonalInfo
3528                         ? "Author" + OUString::number( GetExport().GetInfoID(rAuthor) )
3529                         : rAuthor,
3530                     FSNS( XML_w, XML_date ), DateTimeToOString( aDateTime ) );

** CID 1502950:  Uninitialized members  (UNINIT_CTOR)
/sc/inc/SparklineGroup.hxx: 57 in sc::SparklineGroup::SparklineGroup()()


________________________________________________________________________________________________________
*** CID 1502950:  Uninitialized members  (UNINIT_CTOR)
/sc/inc/SparklineGroup.hxx: 57 in sc::SparklineGroup::SparklineGroup()()
51         bool m_bRightToLeft;
52     
53         std::optional<double> m_aManualMax; // if m_sMinAxisType is "custom"
54         std::optional<double> m_aManualMin; // if m_sMaxAxisType is "custom"
55         OUString m_sUID;
56     
>>>     CID 1502950:  Uninitialized members  (UNINIT_CTOR)
>>>     Non-static class member "m_bRightToLeft" is not initialized in this constructor nor in any functions that it calls.
57         SparklineGroup() {}
58     
59         SparklineGroup(const SparklineGroup&) = delete;
60         SparklineGroup& operator=(const SparklineGroup&) = delete;
61     };
62     
63     } // end sc
64     

** CID 1502949:  Control flow issues  (DEADCODE)
/sw/source/filter/ww8/docxattributeoutput.cxx: 1934 in DocxAttributeOutput::DoWriteMoveRangeTagStart(const rtl::OString &, bool, const SwRedlineData *)()


________________________________________________________________________________________________________
*** CID 1502949:  Control flow issues  (DEADCODE)
/sw/source/filter/ww8/docxattributeoutput.cxx: 1934 in DocxAttributeOutput::DoWriteMoveRangeTagStart(const rtl::OString &, bool, const SwRedlineData *)()
1928                 FSNS(XML_w, XML_id), OString::number(m_nNextBookmarkId),
1929                 FSNS(XML_w, XML_author ), bRemovePersonalInfo
1930                         ? "Author" + OString::number( GetExport().GetInfoID(rAuthor) )
1931                         : OUStringToOString(rAuthor, RTL_TEXTENCODING_UTF8),
1932                 FSNS(XML_w, XML_name), bookmarkName);
1933         else
>>>     CID 1502949:  Control flow issues  (DEADCODE)
>>>     Execution cannot reach this statement: "<temporary>.OString(std::en...".
1934             m_pSerializer->singleElementNS(XML_w, bFrom
1935                     ? XML_moveFromRangeStart
1936                     : XML_moveToRangeStart,
1937                 FSNS(XML_w, XML_id), OString::number(m_nNextBookmarkId),
1938                 FSNS(XML_w, XML_author ), bRemovePersonalInfo
1939                         ? "Author" + OString::number( GetExport().GetInfoID(rAuthor) )


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3DNG1g_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJigQq7U-2BQTJmeDkIYeb6hsV-2Bl5-2FXMJ5iLyoPY-2FDkoyHzr9Uj-2FDN5wPAcsiAjj3xtW24H63b3EZ3FDXlKxJsVu9zCp67i9Cf5XVusyljr7mo-2FD7pG7xm3ISxRD1p3TEUTqz06Iat4tSd72HQVd8GrUKGxCTKJ-2B7bYrAijtoznOGMbE-3D



More information about the LibreOffice mailing list