Kaydet (Commit) d526e489 authored tarafından Eike Rathke's avatar Eike Rathke

resolved fdo#63161 out of bounds string access

Introduced with c7709b46
String to OUString where previous String::GetChar() handled this.

Change-Id: I9253df1af7498e2d7a8ea8077ec6b369697ad44e
üst babbd149
......@@ -218,6 +218,10 @@ private:
const OUString& rString,
sal_Int32 nPos )
{
if (rWhat.isEmpty() || rString.getLength() <= nPos)
{
return false;
}
// mostly used with one character
if ( rWhat[ 0 ] != rString[ nPos ] )
{
......
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