Kaydet (Commit) 592ee030 authored tarafından Caolán McNamara's avatar Caolán McNamara

a malformed string here can force an out of bounds indexOf

Change-Id: Ic4d922bd27b7f119a7f8b95bbb4d4ed9e89fe51d
üst 166ee118
......@@ -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