-
-
Notifications
You must be signed in to change notification settings - Fork 497
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parser hangs on stream of %Y
#638
Comments
Bug was planted in commit 08c929f when reserved directive support was added. This while (!analyzer.Check('#') && !analyzer.IsBreak())
{
Skip();
} |
You can see it here: https://play.yaml.io/main/parser?input=JVk= Playing around in there it seems to hang on any directive line (including reserved) that does not have a line break. See https://play.yaml.io/main/parser?input=I3h4eApmb286IGJhcgouLi4KJXh5eiBAJCVeJio= I added a TIMEOUT message when the parser takes more then 1 second to complete. |
Related, directives must be follow by a See https://play.yaml.io/main/parser?input=JVhZWgo= |
A fix for this issue has been released in version 12.0.0. |
Found this bug while trying things in https://spec.yaml.io/main/playground/parser.
It froze the entire page because of it. I'll need to add a timeout certainly but thought you should know.
To Reproduce
The text was updated successfully, but these errors were encountered: