Kaydet (Commit) 0ce59fb3 authored tarafından Caolán McNamara's avatar Caolán McNamara

rearrange tests to avoid access past end of string

as demonstrated by abi6637-1.doc

Change-Id: Ieed0ca7ccf2d8587179a4530a1da29d7d8228363
üst c7332236
......@@ -516,7 +516,7 @@ sal_Int32 WW8ReadFieldParams::SkipToNextToken()
nSavPtr = nNext;
if ( aData[nFnd]=='\\' && nFnd+1<aData.getLength() && aData[nFnd+1]!='\\' )
if (nFnd+1<aData.getLength() && aData[nFnd+1]!='\\' && aData[nFnd]=='\\')
{
const sal_Int32 nRet = aData[++nFnd];
nNext = ++nFnd; // und dahinter setzen
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment