jhawthorn/fzy

Segfault when haystack length is larger than MATCH_MAX_LEN

mmartin opened this issue · 0 comments

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 ?? ()