Commit 487f381a authored by Jesse Beder's avatar Jesse Beder
Browse files

Fixed out-of-bounds memory access

parent d506dae9
...@@ -167,7 +167,7 @@ namespace YAML ...@@ -167,7 +167,7 @@ namespace YAML
{ {
while(1) { while(1) {
// first eat whitespace // first eat whitespace
while(IsWhitespaceToBeEaten(INPUT.peek())) while(INPUT && IsWhitespaceToBeEaten(INPUT.peek()))
INPUT.eat(1); INPUT.eat(1);
// then eat a comment // then eat a comment
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment