]> git.ipfire.org Git - thirdparty/suricata.git/commit
Fix Boyer Moore Nocase bug where BoyerMooreCtxToNocase was missing. 1047/head
authorKen Steele <ken@tilera.com>
Fri, 18 Jul 2014 16:14:06 +0000 (12:14 -0400)
committerKen Steele <ken@tilera.com>
Fri, 18 Jul 2014 16:18:31 +0000 (12:18 -0400)
commitba1e2ed69db37b6a0c7f036589af93e8b412108e
treee0fecdb98c5499cde6d29870ad34ba5ef6ae90db
parent967f7aefde878746316ce2c2b995d4215d4179ff
Fix Boyer Moore Nocase bug where BoyerMooreCtxToNocase was missing.

Whenever DETECT_CONTENT_NOCASE is set for a BoyerMoore matcher, the
function BoyerMooreCtxToNocase() must be called. This call was missing
in AppLayerProtoDetectPMRegisterPattern().

Also created BoyerMooreNocaseCtxInit() that calls BoyerMooreCtxToNocase()
to make some code cleaner and safer.
src/app-layer-detect-proto.c
src/detect-filemagic.c
src/detect-filename.c
src/util-spm-bm.c
src/util-spm-bm.h
src/util-spm.c