Skip to content
Snippets Groups Projects
Commit ec2ffcb8 authored by Michael Rash's avatar Michael Rash Committed by Adrian Bunk
Browse files

[TEXTSEARCH]: Fix Boyer Moore initialization bug


The pattern is set after trying to compute the prefix table, which tries
to use it. Initialize it before calling compute_prefix_tbl, make
compute_prefix_tbl consistently use only the data from struct ts_bm
and remove the now unnecessary arguments.

Signed-off-by: default avatarMichael Rash <mbr@cipherdyne.org>
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
Acked-by: default avatarDavid Miller <davem@davemloft.net>
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
parent d03460d5
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment