-
Notifications
You must be signed in to change notification settings - Fork 45
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
Bug crashes on certain inputs #4
Comments
I cannot reproduce your error. Could you please provide some sample code to reproduce the error? It created a test to try to reproduce this, but cannot. The test I created (which passes for me) is:
|
I also get this. I came here to let you know. The input string that causes the crash for me is "eed" runtime.panic(0x9415a0, 0xe94bbc) Crash is here:
} |
Yes, anything that is three letters and starts with ee does it for me. Unfortunately, I don't have access to the code I was using this for anymore, so I don't have the error message, but if I recall correctly, it was as smhanov stated. |
originally reported in identified by reiver#4
The test case I added shows that the following inputs result in a panic:
|
originally reported in identified by reiver#4
Ah, yeah, I would love to see that PR merged in soon 👍 Also, @smhanov -- I didn't know you were dabbling in Go! (I've mostly seen Python code from your blog.) |
I'm maintaining a fork now. I don't plan on doing any new development, but I do have an interest in fixing bugs. I have cleaned up a few other things, and put some continuous integration in place. |
@mschoch Thanks, that looks good! |
@mschoch very helpful! thanks! |
Fixed bug mentioned by reiver#4 by applying mschoch/go-porterstemmer/c5e9efb
Ex: "eeb"
Though .Stem checks for words shorter than 3 letters before steps 1-4 execute. By the time it reaches step5a eeb becomes e and there is an index out of bounds error.
The text was updated successfully, but these errors were encountered: