New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Sun Nov 17 04:41:53 UTC 2019


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.
6 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 1455745:  API usage errors  (STREAM_FORMAT_STATE)
/include/tools/color.hxx: 323 in operator <<<char, std::char_traits<char>>(std::basic_ostream<T1, T2> &, const Color &)()


________________________________________________________________________________________________________
*** CID 1455745:  API usage errors  (STREAM_FORMAT_STATE)
/include/tools/color.hxx: 323 in operator <<<char, std::char_traits<char>>(std::basic_ostream<T1, T2> &, const Color &)()
317     constexpr ::Color COL_AUTHOR9_NORMAL          ( 255,  226, 185 );
318     constexpr ::Color COL_AUTHOR9_LIGHT           ( 255,  231, 199 );
319     
320     template<typename charT, typename traits>
321     inline std::basic_ostream<charT, traits>& operator <<(std::basic_ostream<charT, traits>& rStream, const Color& rColor)
322     {
>>>     CID 1455745:  API usage errors  (STREAM_FORMAT_STATE)
>>>     Changing format state of stream "rStream" for categories basefield, fill without later restoring it.
323         return rStream << "c[" << std::hex << std::setfill ('0')
324                        << std::setw(2) << static_cast<int>(rColor.GetRed())
325                        << std::setw(2) << static_cast<int>(rColor.GetGreen())
326                        << std::setw(2) << static_cast<int>(rColor.GetBlue())
327                        << std::setw(2) << static_cast<int>(rColor.GetTransparency()) << "]";
328     }
329     
330     #endif
331     


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRZBnDJeNb0HijxaS4JNJPxk3kpyAm2AYqo71yXmnOxB73RtgzoPcQtNNP5dkHLuV1E-3D_g-2BrHdvqzaBa155F-2F8AmPhpJzY63UzWDisJV95WUBpGhqFw1ICExHG8aMaV2EoFpy2-2BfzNN3ayqncvFf9qePhxnJQ-2BplIIKc-2F8QR9EP7-2FyFNMqSp-2FMoHMiOQ1-2FBf0HKmTkiYKTKCiA1Vi5CDLXqQbZu38YKHaqum4nDMcCt2eJyo6OC1hx2-2FWBSihNR-2FmfFYCrDy-2BLWAiLK5Yqewg5Jm5141Ttz5urtmJGsVO-2F-2FZbdTI-3D



More information about the LibreOffice mailing list