https://bz.apache.org/ooo/show_bug.cgi?id=127451
Issue ID: 127451
Issue Type: DEFECT
Summary: Possible access to unintended variable in
"main/sw/source/core/txtnode/txtedt.cxx" line 1815
Product: Writer
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/sw/source/core/txtnode/txtedt.cxx" line 1815
function TransliterateText
Sequence <sal_Int32> aOffsets;
String sChgd( rTrans.transliterate( GetTxt(),
GetLang( nCurrentStart ), nCurrentStart, nLen,
&aOffsets ));
if (!m_Text.Equals( sChgd, nStt, nLen )) //Line 1815
{
aChgData.nStart = nCurrentStart;
aChgData.nLen = nLen;
aChgData.sChanged = sChgd;
aChgData.aOffsets = aOffsets;
aChanges.push_back( aChgData );
}
In line 1815 it might be possible that nCurrentStart must be used instead of
nStt.
Thanks,
Petru-Florin Mihancea
--
You are receiving this mail because:
You are the assignee for the issue.