sc/source/core/tool/compiler.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit 701e1ec3a2e38a7b0bd2cdd3511a2a50578ea74e Author: Caolán McNamara <caol...@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 <c...@libreoffice.org> Reviewed-by: Eike Rathke <er...@redhat.com> (cherry picked from commit a5550289a37950195b7a7e5b22cba79ce5b5a673) Reviewed-on: https://gerrit.libreoffice.org/44803 diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx index 417523ad5514..d4eda96b2cae 100644 --- a/sc/source/core/tool/compiler.cxx +++ b/sc/source/core/tool/compiler.cxx @@ -3270,6 +3270,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]) ;
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits