-
-
Notifications
You must be signed in to change notification settings - Fork 529
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
More crashes found via fuzzing #239
Labels
Comments
arp242
added a commit
that referenced
this issue
Jun 10, 2021
Previously this: x = """ Hello \\ uehm """ Would get interpreted as: Hello \uehm But that's not correct as that "\" is escaped, and it should be: Hello \ uehm Quite a few (though not all) of the fuzzing failures in #239 are due to this because it tried to parse "\u.." or something else as an escape code. Also fixes #237
arp242
added a commit
that referenced
this issue
Jun 13, 2021
…ntrol characters This changed in TOML 0.5: Allow accidental whitespace between backslash and newline in the line continuation operator in multi-line basic strings In general it deals with CRLF inside """ strings better: it all gets normalized to LF. This also fixes the last of the crashes in #239; """\\r""" would panic. Control characters aren't allowed in strings anyway, so error out on that too.
All of these are now fixed. I also added a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
More strings were found that crash
toml.Decode
.Steps to reproduce
Related: #114, #155
The text was updated successfully, but these errors were encountered: