[Libreoffice-commits] core.git: sc/source

Caolán McNamara caolanm at redhat.com
Wed Nov 15 23:03:33 UTC 2017


 sc/source/core/tool/compiler.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit a5550289a37950195b7a7e5b22cba79ce5b5a673
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Nov 15 11:48:47 2017 +0000

    ofz: special case max index for cSymbol
    
    Change-Id: Ia5fb036196b0cff0739789e691a36d294660540b
    Reviewed-on: https://gerrit.libreoffice.org/44759
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Eike Rathke <erack at redhat.com>

diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx
index ef64f87afede..1228c22110f3 100644
--- a/sc/source/core/tool/compiler.cxx
+++ b/sc/source/core/tool/compiler.cxx
@@ -3266,6 +3266,8 @@ bool ScCompiler::IsReference( const OUString& rName, const OUString* pErrRef )
             return true;
         // Now try with a symbol up to the range operator, rewind source
         // position.
+        if (mnRangeOpPosInSymbol == MAXSTRLEN-1)
+            return false;
         sal_Int32 nLen = mnRangeOpPosInSymbol;
         while (cSymbol[++nLen])
             ;


More information about the Libreoffice-commits mailing list