New Defects reported by Coverity Scan for LibreOffice

scan-admin at coverity.com scan-admin at coverity.com
Mon Aug 12 11:17:40 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.
57 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 1616198:  API usage errors  (SWAPPED_ARGUMENTS)


________________________________________________________________________________________________________
*** CID 1616198:  API usage errors  (SWAPPED_ARGUMENTS)
/vcl/source/window/printdlg.cxx: 862 in vcl::PrintDialog::setPaperSizes()()
856         {
857             int nExactMatch = -1;
858             int nSizeMatch = -1;
859             int nRotatedSizeMatch = -1;
860             Size aSizeOfPaper = aPrt->GetSizeOfPaper();
861             PaperInfo aPaperInfo(aSizeOfPaper.getWidth(), aSizeOfPaper.getHeight());
>>>     CID 1616198:  API usage errors  (SWAPPED_ARGUMENTS)
>>>     The positions of arguments in the constructor for "PaperInfo" do not match the ordering of the parameters:
* "aSizeOfPaper.getHeight()" is passed to "nPaperWidth".
* "aSizeOfPaper.getWidth()" is passed to "nPaperHeight".
862             PaperInfo aRotatedPaperInfo(aSizeOfPaper.getHeight(), aSizeOfPaper.getWidth());
863             const LocaleDataWrapper& rLocWrap(Application::GetSettings().GetLocaleDataWrapper());
864             o3tl::Length eUnit = o3tl::Length::mm;
865             int nDigits = 0;
866             if( rLocWrap.getMeasurementSystemEnum() == MeasurementSystem::US )
867             {


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=u001.AxU2LYlgjL6eX23u9ErQy-2BKADyCpvUKOL6EWmZljiu6VvXBlQRUbS683tC8265rGNPXqJ1ffcoLZCnTuJFQbNcTEkb4XaEQkzovKhJ5DB3c-3DJH9W_A9M4dSy7guk8NP6DcfgslOyvJRzavztVIKj6nRqYjYpWom7SJFyX0y710bz0kUGt3GmZAipN77JcHWApEiH3D-2F1Y5ovpTMCn9CFmgxADMGEYZF9RpUnAtkBcEGxZRi1ndVim-2Fv23uozKqlWgvLu2bEhjF4RzSAl57QXv2GY53KftJJVRnUSNaytSM1e4L57f2UFoV-2Fc87HXnrnX-2B0b-2Bo-2Bk0PK4OH5uTytQZpBirjChk-3D



More information about the LibreOffice mailing list