]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect/mpm: fix fast_pattern handling of len >255
authorVictor Julien <victor@inliniac.net>
Sat, 1 Dec 2018 09:06:54 +0000 (10:06 +0100)
committerVictor Julien <victor@inliniac.net>
Sat, 1 Dec 2018 09:06:59 +0000 (10:06 +0100)
commit6f2b974f9c3307062f2f274693eeaf442eddadcf
tree653d360a2f2e3b458c5b1a258408ab662444d412
parenteedf08be2983e166180b816c45a309e65c88ed88
detect/mpm: fix fast_pattern handling of len >255

The fast pattern selection logic would truncate a patterns len to
255 leading to assigning the same pid to different patterns.

This in turn would be caught by the hyperscan setup code which would
abort.

Bug #2714.
src/detect-engine-mpm.c