Fixed possible read to invalid memory location (thanks to Alexander Konovalov).

This commit is contained in:
Vincent Richard 2011-01-28 12:11:08 +00:00
parent 3cec9612fa
commit 773d750f5c

View File

@ -460,7 +460,7 @@ void word::generate(utility::outputStream& os, const string::size_type maxLineLe
os << string(curLineStart, p);
if (parserHelpers::isSpace(*(p - 1)))
if (p != m_buffer.begin() && parserHelpers::isSpace(*(p - 1)))
state->lastCharIsSpace = true;
else
state->lastCharIsSpace = false;