From e11b333a0be2c36fcb345da656ba1c54f7aa4d5b Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Thu, 5 Mar 2015 21:22:40 -0500 Subject: [PATCH] Lexer - ::isPath was not observing the null character string terminator. --- src/Lexer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Lexer.cpp b/src/Lexer.cpp index d8256eeb1..620e63e47 100644 --- a/src/Lexer.cpp +++ b/src/Lexer.cpp @@ -804,7 +804,8 @@ bool Lexer::isPath (std::string& token, Lexer::Type& type) _text[marker] != '/') { utf8_next_char (_text, marker); - while (! isWhitespace (_text[marker]) && + while (_text[marker] && + ! isWhitespace (_text[marker]) && _text[marker] != '/') utf8_next_char (_text, marker); }