New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Wed Mar 4 16:46:38 UTC 2020


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


** CID 1460477:  Incorrect expression  (UNINTENDED_INTEGER_DIVISION)
/drawinglayer/source/processor2d/vclpixelprocessor2d.cxx: 401 in drawinglayer::processor2d::VclPixelProcessor2D::processBasePrimitive2D(const drawinglayer::primitive2d::BasePrimitive2D &)()


________________________________________________________________________________________________________
*** CID 1460477:  Incorrect expression  (UNINTENDED_INTEGER_DIVISION)
/drawinglayer/source/processor2d/vclpixelprocessor2d.cxx: 401 in drawinglayer::processor2d::VclPixelProcessor2D::processBasePrimitive2D(const drawinglayer::primitive2d::BasePrimitive2D &)()
395     
396                             // calculate blurry effect
397                             BitmapFilterStackBlur glowFilter(nRadius);
398                             BitmapFilter::Filter(bitmap, glowFilter);
399                             // back to old OutDev
400                             mpOutputDevice = pLastOutputDevice;
>>>     CID 1460477:  Incorrect expression  (UNINTENDED_INTEGER_DIVISION)
>>>     Dividing integer expressions "5" and "2", and then converting the integer quotient to type "double". Any remainder, or fractional part of the quotient, is ignored.
401                             mpOutputDevice->DrawBitmapEx(Point(aRange.getMinX()-nRadius/2, aRange.getMinY()-nRadius/2), BitmapEx(bitmap.GetBitmap(), mask));
402     
403                             // paint result
404                             //aBufferDevice.paint();
405                         }
406                         else

** CID 1460475:  Integer handling issues  (BAD_SHIFT)
/workdir/UnpackedTarball/dtoa/src/dtoa.c: 2305 in d2b(U *, int *, int *)()


________________________________________________________________________________________________________
*** CID 1460475:  Integer handling issues  (BAD_SHIFT)
/workdir/UnpackedTarball/dtoa/src/dtoa.c: 2305 in d2b(U *, int *, int *)()
2299     #endif
2300     #ifdef Pack_32
2301     	if ((y = d1)) {
2302     		if ((k = lo0bits(&y))) {
2303     			x[0] = y | z << (32 - k);
2304     			assert(k < 32); /* https://u2389337.ct.sendgrid.net/ls/click?upn=nJaKvJSIH-2FPAfmty-2BK5tYpTgcwIVzti0PGs7l-2FQySlHBnRzAskLVuE7s2IZEr9EXymC5_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJirnfQWQqR0QvlLY-2Brze91W6nQU7e8fF9fAS3ivvYn4nRSY4T-2FET5YduNFBFUflaM9VAg6nBaG-2F1e65KZMShtjGMwmIudBTh4xRK6-2BwqhKc9HJtMbxl0REMGeikasT2NF-2Fe4GoXVggAhJpjh7SB9wyVZrjEuk1YuHCWnOQmOfHqVHPDk-2FSr62SMNUSiy8wAjqF */
>>>     CID 1460475:  Integer handling issues  (BAD_SHIFT)
>>>     In expression "z >>= k", right shifting by more than 31 bits has undefined behavior.  The shift amount, "k", is 32.
2305     			z >>= k;
2306     			}
2307     		else
2308     			x[0] = y;
2309     #ifndef Sudden_Underflow
2310     		i =


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/ls/click?upn=nJaKvJSIH-2FPAfmty-2BK5tYpPklAc1eEA-2F1zfUjH6teExViPHTTReBArhCRZ3BE4kCjKjDqn2Dq3ZyEbAvAs31gRpU3vMPHDnoSx68vDAWjNU-3Dc9Xh_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJirnfQWQqR0QvlLY-2Brze91W2IdFJqdH71tMlTMbDCxy-2FeihJtmvPGLNx9ANI1-2FfCROmbM3uJkoM7QDoY-2F5KjqP9gkxfvgVodE7dCCkRoGp1ky3-2BAZIbZBLUyEuSwCDZ7zkY0bvZxl-2FP0HyCVi2A8ecQjp4C9OBBtNUzYQtqIL9h8UJ4BZsF4Dl11XuHgb8c8gl



More information about the LibreOffice mailing list