New Defects reported by Coverity Scan for LibreOffice

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 1596522:  Incorrect expression  (BAD_COMPARE)
/sc/source/core/data/patattr.cxx: 277 in CellAttributeHelper::RegisteredAttrSetLess::operator ()(const ScPatternAttr *, const rtl::OUString *) const()


________________________________________________________________________________________________________
*** CID 1596522:  Incorrect expression  (BAD_COMPARE)
/sc/source/core/data/patattr.cxx: 277 in CellAttributeHelper::RegisteredAttrSetLess::operator ()(const ScPatternAttr *, const rtl::OUString *) const()
271     {
272         int cmp = CompareStringPtr(lhs->GetStyleName(), rhs);
273         if (cmp < 0)
274             return true;
275         if (cmp > 0)
276             return false;
>>>     CID 1596522:  Incorrect expression  (BAD_COMPARE)
>>>     Comparing pointer "lhs" against "nullptr" using anything besides "==" or "!=" is likely to be incorrect.
277         return lhs < static_cast<const ScPatternAttr*>(nullptr);
278     }
279     bool CellAttributeHelper::RegisteredAttrSetLess::operator()(const OUString* lhs, const ScPatternAttr* rhs) const
280     {
281         int cmp = CompareStringPtr(lhs, rhs->GetStyleName());
282         if (cmp < 0)


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=u001.AxU2LYlgjL6eX23u9ErQy-2BKADyCpvUKOL6EWmZljiu6VvXBlQRUbS683tC8265rGNPXqJ1ffcoLZCnTuJFQbNcTEkb4XaEQkzovKhJ5DB3c-3DeGZ__A9M4dSy7guk8NP6DcfgslOyvJRzavztVIKj6nRqYjYpWom7SJFyX0y710bz0kUGttWS9tzE37PgPm14eQfk0pIjwfvRDg36IZCRx64cuEDsMuGufFgqOb51JTYSfID2AwF4afWdfOnsTqD1Cn9HVR-2F5wuroye1vsAXxP3gUJncwnI2UR3msknLR-2B3-2FXAamwpcDulJwbR-2BRFuFc8gwzpNH1C3fVJFU9J9XjTpIQE9YYo-3D




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux