Kaydet (Commit) cff9a8c9 authored tarafından Caolán McNamara's avatar Caolán McNamara Kaydeden (comit) Andras Timar

a malformed string here can force an out of bounds indexOf

Change-Id: Ic4d922bd27b7f119a7f8b95bbb4d4ed9e89fe51d
(cherry picked from commit 592ee030)
Reviewed-on: https://gerrit.libreoffice.org/16787Reviewed-by: 's avatarEike Rathke <erack@redhat.com>
Tested-by: 's avatarEike Rathke <erack@redhat.com>
üst 90bfc0ab
......@@ -889,7 +889,7 @@ sal_Int32 ImpSvNumberformatScan::Symbol_Division(const OUString& rString)
// Do we have some sort of currency?
OUString sString = pFormatter->GetCharClass()->uppercase(rString);
sal_Int32 nCPos = 0;
while (nCPos >= 0)
while (nCPos >= 0 && nCPos < sString.getLength())
{
nCPos = sString.indexOf(GetCurString(),nCPos);
if (nCPos >= 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment