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.
10 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 1668234:       Integer handling issues  (CONSTANT_EXPRESSION_RESULT)
/svx/source/tbxctrls/linectrl.cxx: 435           in 
<unnamed>::SvxLineEndWindow::SetSize()()


_____________________________________________________________________________________________
*** CID 1668234:         Integer handling issues  (CONSTANT_EXPRESSION_RESULT)
/svx/source/tbxctrls/linectrl.cxx: 435             in 
<unnamed>::SvxLineEndWindow::SetSize()()
429         mxLineEndSet->SetStyle( nBits );
430     
431         Size aSize( maBmpSize );
432         aSize.AdjustWidth(6 );
433         aSize.AdjustHeight(6 );
434         aSize = mxLineEndSet->CalcWindowSizePixel( aSize );
>>>     CID 1668234:         Integer handling issues  
>>> (CONSTANT_EXPRESSION_RESULT)
>>>     "nBits | 8192L /* WB_VSCROLL */" is always 1/true regardless of the 
>>> values of its operand. This occurs as the logical operand of "if".
435         if (nBits | WB_VSCROLL)
436             aSize.AdjustWidth(mxLineEndSet->GetScrollWidth());
437         mxLineEndSet->GetDrawingArea()->set_size_request(aSize.Width(), 
aSize.Height());
438         mxLineEndSet->SetOutputSizePixel(aSize);
439     }
440     

** CID 1668233:       Integer handling issues  (CONSTANT_EXPRESSION_RESULT)
/svx/source/tbxctrls/linectrl.cxx: 576           in SvxLineBox::Fill(const 
rtl::Reference<XDashList> &)()


_____________________________________________________________________________________________
*** CID 1668233:         Integer handling issues  (CONSTANT_EXPRESSION_RESULT)
/svx/source/tbxctrls/linectrl.cxx: 576             in SvxLineBox::Fill(const 
rtl::Reference<XDashList> &)()
570         mxLineStyleSet->SetStyle( nBits );
571     
572         Size aSize(aBmpSize);
573         aSize.AdjustWidth(6);
574         aSize.AdjustHeight(6);
575         aSize = mxLineStyleSet->CalcWindowSizePixel(aSize);
>>>     CID 1668233:         Integer handling issues  
>>> (CONSTANT_EXPRESSION_RESULT)
>>>     "nBits | 8192L /* WB_VSCROLL */" is always 1/true regardless of the 
>>> values of its operand. This occurs as the logical operand of "if".
576         if (nBits | WB_VSCROLL)
577             aSize.AdjustWidth(mxLineStyleSet->GetScrollWidth());
578         mxLineStyleSet->GetDrawingArea()->set_size_request(aSize.Width(), 
aSize.Height());
579         mxLineStyleSet->SetOutputSizePixel(aSize);
580     }
581     


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, 
https://scan.coverity.com/projects/libreoffice?tab=overview

Reply via email to