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

ensure OUString::copy is within bounds

Change-Id: I7b8c2e764da01e38fb9f7048bcaeca93a72fafa3
üst 28c9207d
......@@ -441,7 +441,7 @@ void SmParser::NextToken()
}
else if (aRes.TokenType & KParseType::ONE_SINGLE_CHAR)
{
if (m_aBufferString.copy(nRealStart, 2) == "%%")
if (nRealStart + 2 <= nBufLen && m_aBufferString.copy(nRealStart, 2) == "%%")
{
//SkipComment
m_nBufferIndex = nRealStart + 2;
......
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