]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect/content: fix FNs due to bad depth calc
authorVictor Julien <vjulien@oisf.net>
Thu, 9 Jun 2022 20:25:44 +0000 (22:25 +0200)
committerVictor Julien <vjulien@oisf.net>
Tue, 14 Jun 2022 08:14:29 +0000 (10:14 +0200)
commitac0612319ce21b2e665d28c5410744ffe1144eaa
tree514f8f53adb7723605bea6ef61d123f4e815c7e3
parent0a2d52b8abba6ea78749e13f81c121082b1d541c
detect/content: fix FNs due to bad depth calc

When trying to propegate the depth/offset, within/distance chains
a logic error would set too a restrictive depth on a pattern that
followed more than one "unchained" patterns.

Bug: #5162.
(cherry picked from commit 8d20b40cdd3c8e911b0c4b06fb4fdc999b2d5c7c)
src/detect-content.c