Apache OpenOffice (AOO) Bugzilla – Issue 127450
Possible access to unintended variable in "main/vcl/source/window/winproc.cxx" line 2330
Last modified: 2017-06-22 13:44:26 UTC
While experimenting with a CodeSonar plugin we develop, we noticed a potential issue in file "main/vcl/source/window/winproc.cxx" line 2330 function ImplHandleSalSurroundingTextRequest if( aSelRange.Max() < 0 ) pEvt->mnStart = 0; //Line 2330 else if( aSelRange.Max() > pEvt->maText.Len() ) pEvt->mnEnd = pEvt->maText.Len(); else pEvt->mnEnd = aSelRange.Max(); Shouldn't pEvt->mnEnd be initialied with 0? (instead of pEvt->mnStart). Thanks, Petru-Florin Mihancea