https://bz.apache.org/ooo/show_bug.cgi?id=127450
Issue ID: 127450
Issue Type: DEFECT
Summary: Possible access to unintended variable in
"main/vcl/source/window/winproc.cxx" line 2330
Product: General
Version: 4.2.0-dev
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: Normal
Priority: P5 (lowest)
Component: code
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
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
--
You are receiving this mail because:
You are the assignee for the issue.