We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
So I stumbled upon this: https://github.com/sheredom/utf8.h/blob/master/utf8.h#L697
Is this a crash waiting to happen, or am I reading the logic wrong?
If both h and n are equal strings, this will read past the memory of those strings.
h
n
The text was updated successfully, but these errors were encountered:
Hmm you are probably right! I'll add a test for that and we'll make sure it fails, then probably have to add on a check for null terminator there too.
Good find thanks! 😄
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
So I stumbled upon this: https://github.com/sheredom/utf8.h/blob/master/utf8.h#L697
Is this a crash waiting to happen, or am I reading the logic wrong?
If both
h
andn
are equal strings, this will read past the memory of those strings.The text was updated successfully, but these errors were encountered: