summaryrefslogtreecommitdiff
path: root/idl/source
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-11-06 20:53:13 +0100
committerMichael Stahl <mstahl@redhat.com>2013-11-07 01:34:34 +0100
commit5effaa90f38d55f035d381ad8982d2ed6b9d46de (patch)
treed34e74ef7269690149971ee99de011225a525214 /idl/source
parent614e04019a672cdd61b86699d99250d80f169f95 (diff)
idl: fix out of bounds string accesses
Change-Id: Id0d07ff9bcd4858cb74458eaf13fb9386387f455
Diffstat (limited to 'idl/source')
-rw-r--r--idl/source/cmptools/lex.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/idl/source/cmptools/lex.cxx b/idl/source/cmptools/lex.cxx
index d6644b8e1297..3e131ee7bf43 100644
--- a/idl/source/cmptools/lex.cxx
+++ b/idl/source/cmptools/lex.cxx
@@ -151,9 +151,9 @@ void SvTokenStream::FillTokenList()
int SvTokenStream::GetNextChar()
{
int nChar;
- if( aBufStr.getLength() < nBufPos )
+ while (aBufStr.getLength() <= nBufPos)
{
- if( rInStream.ReadLine( aBufStr ) )
+ if (rInStream.ReadLine(aBufStr))
{
nLine++;
nColumn = 0;