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

avoid truncation of error offset in valid_utf() when subject larger than INT_MAX #181

Merged
merged 1 commit into from
Jan 17, 2023

Conversation

carenas
Copy link
Contributor

@carenas carenas commented Dec 29, 2022

A minor issue in the function to validate UTF which was already partially addressed with e8cdae3 (Correct an incorrect cast., 2017-04-14).

@carenas carenas changed the title minor tweaks to validate_utf() to avoid truncation of error offset avoid truncation of error offset in valid_utf() when subject larger than INT_MAX Dec 30, 2022
e8cdae3 (Correct an incorrect cast., 2017-04-14) started changing
some of the casts to fit the type of the error offset variable, so
complete that, and for consistency, add the same type of casts to
the non UTF-8 code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants