New Defects reported by Coverity Scan for LibreOffice
scan-admin at coverity.com
scan-admin at coverity.com
Sat Feb 10 09:14:48 UTC 2024
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.
9 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 1591787: API usage errors (SWAPPED_ARGUMENTS)
________________________________________________________________________________________________________
*** CID 1591787: API usage errors (SWAPPED_ARGUMENTS)
/vcl/source/window/printdlg.cxx: 1036 in vcl::PrintDialog::updatePageSize(int)()
1030
1031 if (nOrientation != ORIENTATION_AUTOMATIC)
1032 {
1033 if ((nOrientation == ORIENTATION_PORTRAIT && aSize.Width() > aSize.Height())
1034 || (nOrientation == ORIENTATION_LANDSCAPE && aSize.Width() < aSize.Height()))
1035 {
>>> CID 1591787: API usage errors (SWAPPED_ARGUMENTS)
>>> The positions of arguments in the constructor for "Size" do not match the ordering of the parameters:
* "aSize.Height()" is passed to "nWidth".
* "aSize.Width()" is passed to "nHeight".
1036 aSize = Size(aSize.Height(), aSize.Width());
1037 }
1038 }
1039
1040 aPrt->SetPrintPageSize(aSize);
1041 aPrt->SetUsePrintDialogSetting(true);
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNnPiSHxWPOELPnIxzXoBNaw-3DDZ5s_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJi-2FMQNah90sVdv0ufhkoWtzO2yEdxi5dY8o2vQQcoB2hSoFdNaLwNmMm2gNCNERoDYMS8RgLOYE-2BbbR5orvWVPZD-2BuXBdfvqECndMhQI28ykYcGID5mITnTdGzTD6Riqj0OEId5AFt9Df0-2BKx251CiECdMrJhLCwyirGDqU81cM1A-3D
More information about the LibreOffice
mailing list