You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2017/06/23 07:53:45 UTC

[Issue 127451] New: Possible access to unintended variable in "main/sw/source/core/txtnode/txtedt.cxx" line 1815

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: issues@openoffice.apache.org
          Reporter: petrum@gmail.com
  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.

[Issue 127451] Possible access to unintended variable in "main/sw/source/core/txtnode/txtedt.cxx" line 1815

Posted by bu...@apache.org.
https://bz.apache.org/ooo/show_bug.cgi?id=127451

Petru-Florin Mihancea <pe...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |petrum@gmail.com

-- 
You are receiving this mail because:
You are the assignee for the issue.