Fixed out-of-bounds memory access

This commit is contained in:
jbeder
2009-07-31 18:26:42 +00:00
parent 952f72233e
commit c456eab7cd

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