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

indices/1: fix infinite loop on empty needle text (fix #59) #67

Merged
merged 1 commit into from
Nov 23, 2020

Conversation

itchyny
Copy link
Contributor

@itchyny itchyny commented Nov 23, 2020

This pull request fixes #59. The needle array checks non-empty but needleText didn't.

@eiiches
Copy link
Owner

eiiches commented Nov 23, 2020

@itchyny Thank you for reporting a number of subtle issues (which I wouldn't be able to find myself) and fixing this one.

After merging this PR, I'll add a test case for this and publish a new release shortly.

@eiiches eiiches merged commit f93d865 into eiiches:develop/1.x Nov 23, 2020
@itchyny
Copy link
Contributor Author

itchyny commented Nov 23, 2020

Yeah, since this is the only issue which can cause a server to hang, releasing would be nice.

eiiches added a commit that referenced this pull request Nov 23, 2020
@eiiches
Copy link
Owner

eiiches commented Nov 23, 2020

Released as 1.0.0-preview.20201123. It should be available from the Maven central within a few hours. Thanks again @itchyny !

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.

indices("") results in infinite loop
2 participants