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

Fix infinite loop at illegal sequence [Bug #17729] #4284

Merged
merged 1 commit into from
Mar 18, 2021

Conversation

nobu
Copy link
Member

@nobu nobu commented Mar 18, 2021

As mblen returns -1 on failure, skip the first byte and try the succeeding bytes in that case.

Close #4281

As mblen returns -1 on failure, skip the first byte and try the
succeeding bytes in that case.

Close ruby#4281
@nobu nobu merged commit f748b91 into ruby:master Mar 18, 2021
@nobu nobu deleted the bug/17729-char_next branch March 18, 2021 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant