Kaydet (Commit) 547230e6 authored tarafından Caolán McNamara's avatar Caolán McNamara

ofz#4484 don't set mnRangeOpPosInSymbol on StringOverflow case

Change-Id: I35d86c97e4fb082a676a5eeadf8375738cecd7bd
Reviewed-on: https://gerrit.libreoffice.org/45565Reviewed-by: 's avatarEike Rathke <erack@redhat.com>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst ad4abd94
......@@ -2214,14 +2214,16 @@ Label_MaskStateMachine:
{
// One range operator may form Sheet1.A:A, which we need to
// pass as one entity to IsReference().
mnRangeOpPosInSymbol = pSym - &cSymbol[0];
if( pSym == &cSymbol[ MAXSTRLEN ] )
{
SetError(FormulaError::StringOverflow);
eState = ssStop;
}
else
{
mnRangeOpPosInSymbol = pSym - &cSymbol[0];
*pSym++ = c;
}
}
else if ( 128 <= c || '\'' == c )
{ // High values need reparsing with i18n,
......
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