Skip to content

infinite loop if invalid yaml #139

@efolio

Description

@efolio

Hi,

I encountered this annoying issue:
If the yaml to parse is invalid, the script is stuck in an infinite loop, filling the memory and ending with a magnificent crash.

How to reproduce:

yaml.safeLoad('  to:\n  ta: "test"\n');

The expected behavior is obviously throwing an error, not being stuck in an infinite loop…

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions