[prev in list] [next in list] [prev in thread] [next in thread]
List: libreoffice
Subject: New Defects reported by Coverity Scan for LibreOffice
From: scan-admin () coverity ! com
Date: 2024-02-10 9:14:48
Message-ID: 65c73e88548b3_16b1502ca6c8ee39a06209 () prd-scan-dashboard-0 ! mail
[Download RAW message or body]
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-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31O \
Yv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNnPiSHxWPOELPnIxzXoBNaw-3DDZ5s_OTq2XU \
ZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJi-2FMQNah90sVdv0ufhkoWtzO \
2yEdxi5dY8o2vQQcoB2hSoFdNaLwNmMm2gNCNERoDYMS8RgLOYE-2BbbR5orvWVPZD-2BuXBdfvqECndMhQI28ykYcGID5mITnTdGzTD6Riqj0OEId5AFt9Df0-2BKx251CiECdMrJhLCwyirGDqU81cM1A-3D
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic