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

panic in transform.go when it's trying to reslice #61

Closed
diptomondal007 opened this issue Jul 26, 2023 · 2 comments
Closed

panic in transform.go when it's trying to reslice #61

diptomondal007 opened this issue Jul 26, 2023 · 2 comments

Comments

@diptomondal007
Copy link

diptomondal007 commented Jul 26, 2023

It seems it's trying to reslice with invalid index in v1.1.5

panic: runtime error: slice bounds out of range [5:3]

goroutine 399472 [running]:
golang.org/x/text/transform.String({0xe4c3d0, 0x13ce5c0}, {0xc00042d358, 0x3})
	/vendor/golang.org/x/text/transform/transform.go:650 +0xbe5
github.com/lithammer/fuzzysearch/fuzzy.stringTransform({0xc00042d358, 0x3}, {0xe4c3d0?, 0x13ce5c0?})
	/vendor/github.com/lithammer/fuzzysearch/fuzzy/fuzzy.go:243 +0x5a
github.com/lithammer/fuzzysearch/fuzzy.match({0xc00042d358?, 0x44fe72?}, {0xc0007a1950, 0x13}, {0xe4c3d0, 0x13ce5c0})
@lithammer
Copy link
Owner

lithammer commented Jul 26, 2023

Have you tried v1.1.8? It fixes a panic in the Unicode transformer (#54).

@diptomondal007
Copy link
Author

yes true actually I upgraded the version but tried with old docker image and thought not working. thanks

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

No branches or pull requests

2 participants