New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Sat Aug 21 15:37:52 UTC 2021


Hi,

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

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


** CID 1490403:  Control flow issues  (DEADCODE)
/sc/source/filter/oox/richstring.cxx: 158 in oox::xls::<unnamed>::lcl_unEscapeUnicodeChars(const rtl::OUString &)()


________________________________________________________________________________________________________
*** CID 1490403:  Control flow issues  (DEADCODE)
/sc/source/filter/oox/richstring.cxx: 158 in oox::xls::<unnamed>::lcl_unEscapeUnicodeChars(const rtl::OUString &)()
152         }
153         while (nPrefixStart != -1);
154     
155         if (bFound)
156             return aBuf.makeStringAndClear();
157     
>>>     CID 1490403:  Control flow issues  (DEADCODE)
>>>     Execution cannot reach this statement: "<temporary>.OUString(rSrc);".
158         return rSrc;
159     }
160     
161     } // namespace
162     
163     RichStringPortion::RichStringPortion( const WorkbookHelper& rHelper ) :

** CID 1490402:  Resource leaks  (RESOURCE_LEAK)
/sw/source/core/doc/DocumentContentOperationsManager.cxx: 1282 in <unnamed>::lcl_SetRedline(SwDoc &, const SwPaM &)()


________________________________________________________________________________________________________
*** CID 1490402:  Resource leaks  (RESOURCE_LEAK)
/sw/source/core/doc/DocumentContentOperationsManager.cxx: 1282 in <unnamed>::lcl_SetRedline(SwDoc &, const SwPaM &)()
1276                 {
1277                     std::unique_ptr<SwRedlineExtraData_FormatColl> xRedlineExtraData;
1278                     xRedlineExtraData.reset(pExtra);
1279                     pRedline->SetExtraData( xRedlineExtraData.get() );
1280                 }
1281             }
>>>     CID 1490402:  Resource leaks  (RESOURCE_LEAK)
>>>     Variable "pExtra" going out of scope leaks the storage it points to.
1282         }
1283     
1284         /// Insert Hints according to content types;
1285         // Is used in SwDoc::Insert(..., SwFormatHint &rHt)
1286     
1287         bool lcl_InsAttr(


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3D-URW_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJi7JsXB6G7QnBn3MjYxwO36ZPYbjRt8Nu9DFV-2BG8dX3LC-2FC6UlNdaE9UGd5wB-2B7NijChy2qaJFfbc-2FpSFEfeIzWYqZO325YmOLThsswFbgHDpSKyfxAmSwvj3DrdjQTdVi7NsYCV9l8cgYDAdFlucAhf9-2BbfbnrimvTDYlpuYWORQ-3D



More information about the LibreOffice mailing list