-
Notifications
You must be signed in to change notification settings - Fork 99
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
Weird segfault when parsing a map in a sequence in some cases #32
Labels
bug
Something isn't working
Comments
Looks like the problem is that the indentation is mistakenly set to 4 rather than 2 from _handle_seq_impl: rapidyaml/src/c4/yml/parse.cpp Lines 609 to 629 in e1216d4
It appears that _save_indentation is being called with the length of the unquoted scalar. |
That's it, you nailed it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following document causes ryml to simply crash when parsing:
These ones work, though:
Using the inline flow style for the map in the problematic document also works:
- {'a': 1, b: 2}
It looks like something goes wrong when parsing a map in a sequence, but only if the first key-value pair has a quoted key, and only if the map uses the block style.
The text was updated successfully, but these errors were encountered: