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

Segfault when haystack length is larger than MATCH_MAX_LEN #145

Closed
mmartin opened this issue Jul 27, 2020 · 0 comments
Closed

Segfault when haystack length is larger than MATCH_MAX_LEN #145

mmartin opened this issue Jul 27, 2020 · 0 comments

Comments

@mmartin
Copy link

mmartin commented Jul 27, 2020

Fzy segfaults when haystack length is larger than MATCH_MAX_LEN.

Backtrace:

#0  0x0000555555556b53 in precompute_bonus (match_bonus=0x7ffff6453e58,
    haystack=0x7ffff7cc5ee1) at src/match.c:50
#1  setup_match_struct (match=match@entry=0x7ffff6453650, needle=0x7fffffffc578,
    haystack=0x7ffff7cc5ee1) at src/match.c:69
#2  0x0000555555556d29 in match (needle=<optimized out>, haystack=<optimized out>) at src/match.c:110
#3  0x3feccccccccccccd in ?? ()
#4  0x0000000000000000 in ?? ()
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

1 participant