New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Sat May 28 04:11:13 UTC 2022


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.
2 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 1 of 1 defect(s)


** CID 1504583:  Error handling issues  (CHECKED_RETURN)
/sw/source/core/txtnode/attrcontentcontrol.cxx: 300 in SwContentControl::GetCurrentDateValue() const()


________________________________________________________________________________________________________
*** CID 1504583:  Error handling issues  (CHECKED_RETURN)
/sw/source/core/txtnode/attrcontentcontrol.cxx: 300 in SwContentControl::GetCurrentDateValue() const()
294         {
295             return 0;
296         }
297     
298         double dCurrentDate = 0;
299         OUString aCurrentDate = m_aCurrentDate.replaceAll("T00:00:00Z", "");
>>>     CID 1504583:  Error handling issues  (CHECKED_RETURN)
>>>     Calling "IsNumberFormat" without checking return value (as is done elsewhere 72 out of 78 times).
300         pNumberFormatter->IsNumberFormat(aCurrentDate, nFormat, dCurrentDate);
301         return dCurrentDate;
302     }
303     
304     void SwContentControl::dumpAsXml(xmlTextWriterPtr pWriter) const
305     {


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3D_exE_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJi0q9U6syEGq9OtgX-2BCjfRFrjAgjV1Hi0YvUKA6gYqLGO4MoV9DS573RWddQAUuiLCvDjDcknCmQuSHiLg87CCS83-2BVZqKcgK9EbKfvuVK2q2SOVvvBbAlQrNYLTKpkKgPzXy-2FZ1-2BijzXwtB9QFLVEgjHcs7SMxDhOMyqOq3kgNr9X08Mj3P3iOtTK8ikpTxgO



More information about the LibreOffice mailing list