mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 20:51:16 +00:00
Fixed out-of-bounds memory access
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user