diff options
author | Joonwoo Park <joonwpark81@gmail.com> | 2008-07-07 15:56:57 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-07-24 09:14:07 -0700 |
commit | 3fa6bcb587adefb2ed2391297529cbead8f03e0a (patch) | |
tree | c6681c6f14e8134e74771099f0fc04be910833c3 /net/x25/x25_forward.c | |
parent | fc46a59f78a80dc3957a00badaca2737ddf7fbfd (diff) |
textsearch: fix Boyer-Moore text search bug
Upstream commit aebb6a849cfe7d89bcacaaecc20a480dfc1180e7
The current logic has a bug which cannot find matching pattern, if the
pattern is matched from the first character of target string.
for example:
pattern=abc, string=abcdefg
pattern=a, string=abcdefg
Searching algorithm should return 0 for those things.
Signed-off-by: Joonwoo Park <joonwpark81@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/x25/x25_forward.c')
0 files changed, 0 insertions, 0 deletions