]> git.ipfire.org Git - thirdparty/suricata.git/commit
content: don't error out on incomplete hex 7887/head
authorJason Ish <jason.ish@oisf.net>
Mon, 19 Sep 2022 21:12:46 +0000 (15:12 -0600)
committerJason Ish <jason.ish@oisf.net>
Tue, 20 Sep 2022 18:10:55 +0000 (12:10 -0600)
commit8174ba9e6ffd4106df70caba9d01a525d698231b
treed1557eedbee0485e1f156d77434f5f21da83b175
parent726de4e70c7e7cff714f89d1d00208a162817f4f
content: don't error out on incomplete hex

Before 6.0.6 if hex content was incomplete, Suricata didn't error out.
With 6.0.6 incomplete hex was detected and errored on which is a
breaking change in a release branch.  Instead, only emit a warning
unless strict content checking has been requested.

To enable strict behaviour on incomplete content hex in a rule,
"--strict-rule-keywords=content" can be used on the command line.

Issue: #5546
src/detect-content.c
src/detect-content.h
src/detect-fileext.c
src/detect-filemagic.c
src/detect-filename.c
src/detect-flowvar.c
src/detect-parse.c
src/detect-pktvar.c
src/detect-replace.c