Kaydet (Commit) d6635af3 authored tarafından Eike Rathke's avatar Eike Rathke

string access out of bounds

This convoluted logic may pass FUNC_NOTFOUND -1 as position around if
there was no initial function.

Change-Id: I217fc745d8e0b8e532642d0f69110371d183610d
üst 969dab55
......@@ -229,7 +229,7 @@ sal_Int32 FormulaHelper::GetFunctionStart( const OUString& rFormula,
}
else
{
while ( !bFound && (nParPos < nStrLen) )
while ( !bFound && (0 <= nParPos && nParPos < nStrLen) )
{
if ( rFormula[nParPos] == '"' )
{
......
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