Fixed possible read to invalid memory location (thanks to Alexander Konovalov).
This commit is contained in:
parent
3cec9612fa
commit
773d750f5c
@ -460,7 +460,7 @@ void word::generate(utility::outputStream& os, const string::size_type maxLineLe
|
|||||||
|
|
||||||
os << string(curLineStart, p);
|
os << string(curLineStart, p);
|
||||||
|
|
||||||
if (parserHelpers::isSpace(*(p - 1)))
|
if (p != m_buffer.begin() && parserHelpers::isSpace(*(p - 1)))
|
||||||
state->lastCharIsSpace = true;
|
state->lastCharIsSpace = true;
|
||||||
else
|
else
|
||||||
state->lastCharIsSpace = false;
|
state->lastCharIsSpace = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user