Fixed out-of-bounds memory access
This commit is contained in:
parent
d506dae914
commit
487f381ae9
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user