You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The assert(len(text) == len(roles)) @ fuzzy.odin#L193 triggers whenever text is of greater length than roles.
This seems like an incorrect assumption is made in fuzzy_calculate_roles given fuzzy.odin#L231 allows for text's length to be greater, yet the slice passed to fuzzy_calculate_roles will never be as it still takes the minimum length of the two.
This was causing a crash when a proc length was greater than max_word.
Applying the following patch fixed the crash, where the minimum of both is taken again in fuzzy_calculate_roles as it is done in fuzzy_init. I am not familiar with the rest of the semantics that take place in fuzzy_calculate_roles, so I did not consider this PR worthy -- though I am happy to make one if this is a good enough fix.
The
assert(len(text) == len(roles))
@ fuzzy.odin#L193 triggers whenevertext
is of greater length thanroles
.This seems like an incorrect assumption is made in
fuzzy_calculate_roles
given fuzzy.odin#L231 allows fortext
's length to be greater, yet the slice passed to fuzzy_calculate_roles will never be as it still takes the minimum length of the two.This was causing a crash when a
proc
length was greater thanmax_word
.Applying the following patch fixed the crash, where the minimum of both is taken again in
fuzzy_calculate_roles
as it is done infuzzy_init
. I am not familiar with the rest of the semantics that take place infuzzy_calculate_roles
, so I did not consider this PR worthy -- though I am happy to make one if this is a good enough fix.The text was updated successfully, but these errors were encountered: