[Libreoffice-commits] core.git: Branch 'libreoffice-5-4' - sc/source
Caolán McNamara
caolanm at redhat.com
Fri Dec 1 12:30:55 UTC 2017
sc/source/core/tool/compiler.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 6d67cc8299f17ecd50c2257f0022de85606a15f4
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Nov 29 17:05:07 2017 +0000
ofz#4484 don't set mnRangeOpPosInSymbol on StringOverflow case
Change-Id: I35d86c97e4fb082a676a5eeadf8375738cecd7bd
Reviewed-on: https://gerrit.libreoffice.org/45566
Reviewed-by: Eike Rathke <erack at redhat.com>
Tested-by: Michael Stahl <mstahl at redhat.com>
diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx
index d4eda96b2cae..62200282b2f0 100644
--- a/sc/source/core/tool/compiler.cxx
+++ b/sc/source/core/tool/compiler.cxx
@@ -2225,14 +2225,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-1 ] )
{
SetError(FormulaError::StringOverflow);
eState = ssStop;
}
else
+ {
+ mnRangeOpPosInSymbol = pSym - &cSymbol[0];
*pSym++ = c;
+ }
}
else if ( 128 <= c || '\'' == c )
{ // High values need reparsing with i18n,
More information about the Libreoffice-commits
mailing list