[Libreoffice-commits] core.git: svl/source
Laurent Balland-Poirier
laurent.balland-poirier at laposte.net
Mon Aug 22 10:47:43 UTC 2016
svl/source/numbers/zformat.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 734eb8b034c8035565d091aa016ce3b8df838b19
Author: Laurent Balland-Poirier <laurent.balland-poirier at laposte.net>
Date: Sun Aug 21 22:57:20 2016 +0200
tdf#101636 Test index before reading OUString
Change-Id: I0a4c02b172fc6d3273f6aa2cca855c27705b4d68
Reviewed-on: https://gerrit.libreoffice.org/28282
Reviewed-by: Eike Rathke <erack at redhat.com>
Tested-by: Eike Rathke <erack at redhat.com>
diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx
index 2cd9282..b4c58cc 100644
--- a/svl/source/numbers/zformat.cxx
+++ b/svl/source/numbers/zformat.cxx
@@ -1411,7 +1411,7 @@ short SvNumberformat::ImpNextSymbol(OUStringBuffer& rString,
nLen--;
break;
case '$' :
- if ( rString[nPos] == '-' )
+ if ( nPos < nLen && rString[nPos] == '-' )
{
// [$-xxx] locale
sBuffSymbol.stripStart('[');
More information about the Libreoffice-commits
mailing list