diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-09-22 12:28:31 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-09-22 12:28:48 +0100 |
commit | c86a23b9c739519b2c7c45b3ee67399549adacdc (patch) | |
tree | a548298943a1aa257b73294167f53c95934db497 /starmath | |
parent | Related: fdo#38838 remove UniString::InsertAscii (diff) | |
download | core-c86a23b9c739519b2c7c45b3ee67399549adacdc.tar.gz core-c86a23b9c739519b2c7c45b3ee67399549adacdc.zip |
ensure OUString::copy is within bounds
Change-Id: I7b8c2e764da01e38fb9f7048bcaeca93a72fafa3
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/parse.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx index 9cb24fc70e8a..78abe819aa07 100644 --- a/starmath/source/parse.cxx +++ b/starmath/source/parse.cxx @@ -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; |