Fixed out-of-bounds memory access

This commit is contained in:
Jesse Beder
2009-07-31 18:26:42 +00:00
parent d506dae914
commit 487f381ae9

View File

@@ -167,7 +167,7 @@ namespace YAML
{
while(1) {
// first eat whitespace
while(IsWhitespaceToBeEaten(INPUT.peek()))
while(INPUT && IsWhitespaceToBeEaten(INPUT.peek()))
INPUT.eat(1);
// then eat a comment