diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-11-08 17:05:59 +0000 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2017-11-27 12:55:07 +0100 |
commit | 82094d1a77bc5ad8d732f640c1a05a6b5339b666 (patch) | |
tree | 99554fe6be3aeda88441bafc530144c9b0c4fb3c /sc | |
parent | c01a48c81115bf8590df346c277728598534a82f (diff) |
ofz: bad mnRangeOpPosInSymbol
Change-Id: Ieae5a81a1b475fd56cce76c43dab11c2d9fcbe6c
Reviewed-on: https://gerrit.libreoffice.org/44499
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins <ci@libreoffice.org>
(cherry picked from commit f17640a95b4c65809f8573c778a293c836a847cd)
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/tool/compiler.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx index e0f67fc1b5ef..5e74e5e35576 100644 --- a/sc/source/core/tool/compiler.cxx +++ b/sc/source/core/tool/compiler.cxx @@ -2678,6 +2678,8 @@ Label_MaskStateMachine: { SetError( FormulaError::StringOverflow ); nLen = MAXSTRLEN-1; + if (mnRangeOpPosInSymbol > nLen) + mnRangeOpPosInSymbol = -1; } lcl_UnicodeStrNCpy( cSymbol, aSymbol.getStr(), nLen ); pSym = &cSymbol[nLen]; |