Apache OpenOffice (AOO) Bugzilla – Issue 127449
Possible access to unintended variable in "main/svx/source/svdraw/svdxcgv.cxx" line 500
Last modified: 2017-06-22 13:11:49 UTC
While experimenting with a CodeSonar plugin we develop, we noticed a potential issue in file "main/svx/source/svdraw/svdxcgv.cxx" line 500 function ImpPasteObject nSizX*=aMapFact.X().GetNumerator(); nSizX*=rMap.GetScaleX().GetNumerator(); nSizX*=aDstFr.GetDenominator(); nSizX/=aMapFact.X().GetDenominator(); nSizX/=rMap.GetScaleX().GetDenominator(); nSizX/=aDstFr.GetNumerator(); nSizY*=aMapFact.Y().GetNumerator(); nSizY*=rMap.GetScaleY().GetNumerator(); nSizX*=aDstFr.GetDenominator(); //Line 500 nSizY/=aMapFact.Y().GetDenominator(); nSizY/=rMap.GetScaleY().GetDenominator(); nSizY/=aDstFr.GetNumerator(); Shouldn't you update nSizY instead of nSizX? (in other words, I think the last character of the identifier should be Y and not X). Regards, Petru-Florin Mihancea