New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Thu Dec 7 08:14:01 UTC 2023


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.
37 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 1558798:    (CHECKED_RETURN)
/vcl/source/outdev/font.cxx: 1031 in OutputDevice::ForceFallbackFont(const vcl::Font &)()
/vcl/source/outdev/font.cxx: 1027 in OutputDevice::ForceFallbackFont(const vcl::Font &)()


________________________________________________________________________________________________________
*** CID 1558798:    (CHECKED_RETURN)
/vcl/source/outdev/font.cxx: 1031 in OutputDevice::ForceFallbackFont(const vcl::Font &)()
1025         vcl::Font aOldFont = GetFont();
1026         SetFont(rFallbackFont);
1027         InitFont();
1028     
1029         mpForcedFallbackInstance = mpFontInstance;
1030         SetFont(aOldFont);
>>>     CID 1558798:    (CHECKED_RETURN)
>>>     Calling "InitFont" without checking return value (as is done elsewhere 11 out of 13 times).
1031         InitFont();
1032     
1033         if (mpForcedFallbackInstance)
1034             return true;
1035     
1036         return false;
/vcl/source/outdev/font.cxx: 1027 in OutputDevice::ForceFallbackFont(const vcl::Font &)()
1021     }
1022     
1023     bool OutputDevice::ForceFallbackFont(vcl::Font const& rFallbackFont)
1024     {
1025         vcl::Font aOldFont = GetFont();
1026         SetFont(rFallbackFont);
>>>     CID 1558798:    (CHECKED_RETURN)
>>>     Calling "InitFont" without checking return value (as is done elsewhere 11 out of 13 times).
1027         InitFont();
1028     
1029         mpForcedFallbackInstance = mpFontInstance;
1030         SetFont(aOldFont);
1031         InitFont();
1032     


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNnPiSHxWPOELPnIxzXoBNaw-3D7a2y_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJimbt-2BNOGakoBgdcaDjKDqx-2B2x5N0kjR5ngWSo5c3f3-2BBLo6ifIEAXvnlQ7W5RUKqO-2BB-2FF6yOqZKhB33P88budkjh10ksHdrKV-2F7bMYoNWKBxSMj9smEk0F4JNiUuXn3a8EATfbr6vMCPf95NbIGDyucec8RvMGh-2FKh8NJFzNcnJU-3D



More information about the LibreOffice mailing list