]> git.ipfire.org Git - thirdparty/suricata.git/commit
radix: improve address range handling
authorVictor Julien <vjulien@oisf.net>
Thu, 17 Feb 2022 12:32:17 +0000 (13:32 +0100)
committerShivani Bhardwaj <shivanib134@gmail.com>
Fri, 4 Mar 2022 05:38:17 +0000 (11:08 +0530)
commit594ac6f9abb5b382d3dba9220033db0f85f348d1
treee315054e1e18bf6382ba1a92049ab493a33f7549
parent5d64c811c27d3e0aa567331dbfe12f0c23560ba3
radix: improve address range handling

Handle non-exact address ranges from string. This can come directly
from user input, so here it is accepted but the address is converted
to the address range start. A warning will be issued.

Debug validation checks are added to catch this.

This issue could lead to bad input from iprep (with cidr), defrag config
and htp server personalities to produce a bad radix tree.

Bug: #5084.
Bug: #5085.
Bug: #5086.
(cherry picked from commit 7fd6fe732b360d4f1de4483b539af2eda813b966)
src/util-radix-tree.c