Skip to content

Infinite loop when parsing unclosed inline block #2

@GoogleCodeExporter

Description

@GoogleCodeExporter
Parsing "bad YAML: [" results in an infinite loop. I'm not exactly sure why
does it happen but I see that YAML::Scanner::VerifySimpleKey(), called from
YAML::Scanner::VerifyAllSimpleKeys() called from YAML::Scanner::EndStream()
never terminates and the key grows forever, e.g. I have

(gdb) p key
$4 = {
  pos = 10,
  line = 0,
  column = 6099472,
  flowLevel = 0,
  pMapStart = 0x7fff8c058450,
  pKey = 0x45691f
}

(notice the column value).

Original issue reported on code.google.com by vzeitlin@gmail.com on 24 Sep 2008 at 8:47

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions