diff options
author | Laurent Balland-Poirier <laurent.balland-poirier@laposte.net> | 2016-08-21 22:57:20 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-08-22 10:46:59 +0000 |
commit | 734eb8b034c8035565d091aa016ce3b8df838b19 (patch) | |
tree | 68c668f53a01093d340409141089fed1ec56cd8f | |
parent | e2325c8e15a92fff2cffa45d30485a50428ac1bc (diff) |
tdf#101636 Test index before reading OUString
Change-Id: I0a4c02b172fc6d3273f6aa2cca855c27705b4d68
Reviewed-on: https://gerrit.libreoffice.org/28282
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
-rw-r--r-- | svl/source/numbers/zformat.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx index 2cd92827f420..b4c58cc58127 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('['); |