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

Adding tests of invalid utf-8 #1185

Open
Sytten opened this issue Aug 24, 2024 · 0 comments
Open

Adding tests of invalid utf-8 #1185

Sytten opened this issue Aug 24, 2024 · 0 comments

Comments

@Sytten
Copy link

Sytten commented Aug 24, 2024

Hi!
I saw the recent changes to the UTF-8 parsing (on HN) and while speed is always appreciated, there is a whole class of bugs related to bad parsing of UTF-8 strings (https://en.m.wikipedia.org/wiki/UTF-8#Invalid_sequences_and_error_handling, http://www.unicode.org/reports/tr36/#Canonical_Represenation). Given that, I am thinking that code path should be fuzzed/tested a lot more to make sure the clever tricks correctly handle intentionally malformed input. I am happy to contribute some tests, just opening the issue to get some feedback.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant