reiver / go-porterstemmer

A native Go clean room implementation of the Porter Stemming algorithm.
https://godoc.org/github.com/reiver/go-porterstemmer
MIT License
190 stars 45 forks source link

Fix panics #7

Closed mschoch closed 8 years ago

mschoch commented 10 years ago

This pull-request is related to issue #4

Added a fuzz unit test to identify which inputs (less than 6 chars long) result in a panic. Moved check for measure = 1 before creating slice to avoid panic in rule 5a.

reiver commented 8 years ago

Sorry for the delay. Just getting around to this package again. Looks good.