summaryrefslogtreecommitdiff
path: root/sc/source/core/tool/interpr1.cxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2018-10-26 11:12:30 +0200
committerEike Rathke <erack@redhat.com>2018-10-26 16:34:54 +0200
commitca844d61ea19c9b2096db6047110ec0257d817bb (patch)
tree7b57fbb49802553bf92beacb9910e9a64e35e3b1 /sc/source/core/tool/interpr1.cxx
parent5590c70b47c029006edec41be70c34a0a07fd6fd (diff)
Use CheckStringResultLen() also for CONCATENATE(), CONCAT() and TEXTJOIN()
Change-Id: Ifbc2b127998e037be3f014bebf8721bef15ef53b Reviewed-on: https://gerrit.libreoffice.org/62385 Tested-by: Jenkins Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sc/source/core/tool/interpr1.cxx')
-rw-r--r--sc/source/core/tool/interpr1.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx
index a0ae2d5ded14..6c3012ad2ad9 100644
--- a/sc/source/core/tool/interpr1.cxx
+++ b/sc/source/core/tool/interpr1.cxx
@@ -9456,7 +9456,10 @@ void ScInterpreter::ScConcat()
while( nParamCount-- > 0)
{
OUString aStr = GetString().getString();
- aRes = aStr + aRes;
+ if (CheckStringResultLen( aRes, aStr))
+ aRes = aStr + aRes;
+ else
+ break;
}
PushString( aRes );
}