Apache OpenOffice (AOO) Bugzilla – Issue 127451
Possible access to unintended variable in "main/sw/source/core/txtnode/txtedt.cxx" line 1815
Last modified: 2018-09-17 14:30:07 UTC
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