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

apparently calling match on a string with an index past the end is now fatal

assert on loading ooo55345-1.ppt etc

Change-Id: Ie76720e511674ddd883f7e397442a84838c1a1f4
üst 20bea5c8
...@@ -623,7 +623,7 @@ void XclImpUrlHelper::DecodeUrl( ...@@ -623,7 +623,7 @@ void XclImpUrlHelper::DecodeUrl(
sal_Unicode cCurrDrive = 0; sal_Unicode cCurrDrive = 0;
OUString aDosBase( INetURLObject( rRoot.GetBasePath() ).getFSysPath( INetURLObject::FSYS_DOS ) ); OUString aDosBase( INetURLObject( rRoot.GetBasePath() ).getFSysPath( INetURLObject::FSYS_DOS ) );
if( aDosBase.match(":\\", 1) ) if (!aDosBase.isEmpty() && aDosBase.match(":\\", 1))
cCurrDrive = aDosBase[0]; cCurrDrive = aDosBase[0];
const sal_Unicode* pChar = rEncodedUrl.getStr(); const sal_Unicode* pChar = rEncodedUrl.getStr();
......
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