Skip to content
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

Detect invalid escape sequence at the end of basic multiline string #322

Closed
moorereason opened this issue Nov 4, 2021 · 0 comments
Closed
Labels

Comments

@moorereason
Copy link

Given blahblah="""abc\ """, this package (e0af6a2) doesn't return an error for an invalid escape sequence at the end of the string. However, adding any character after the space (ie. blahblah="""abc\ #""") does trigger the invalid escape sequence detection.

Reproduce with https://play.golang.org/p/X6k3qaWCxoP

toml.Unmarshal([]byte("blahblah=\"\"\"abc\\ \"\"\""), &v)

Found while doing differential fuzzing against github.com/pelletier/go-toml/v2.

@arp242 arp242 added the bug label Nov 16, 2021
arp242 added a commit to toml-lang/toml-test that referenced this issue Nov 25, 2021
@arp242 arp242 closed this as completed in 2249a9c Feb 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants