summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2020-04-11 14:19:36 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2020-04-11 17:21:58 +0200
commit3e7dad95af69bde12f22af5b1a2bc860ab3da417 (patch)
tree44b0c234eda9991f1fddaa21df2985d7540087bf /tests
parenta2bca70a13f7a3f641494d0f8cf89ad9c449503e (diff)
segtree: broken error reporting with mappings
Segfault on error reporting when intervals overlap. ip saddr vmap { 10.0.1.0-10.0.1.255 : accept, 10.0.1.1-10.0.2.255 : drop } Closes: https://bugzilla.netfilter.org/show_bug.cgi?id=1415 Fixes: 4d6ad0f310d6 ("segtree: check for overlapping elements at insertion") Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/py/inet/ip.t2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/py/inet/ip.t b/tests/py/inet/ip.t
index 4eb69d73..86604a63 100644
--- a/tests/py/inet/ip.t
+++ b/tests/py/inet/ip.t
@@ -7,3 +7,5 @@
*netdev;test-netdev;ingress
ip saddr . ip daddr . ether saddr { 1.1.1.1 . 2.2.2.2 . ca:fe:ca:fe:ca:fe };ok
+ip saddr vmap { 10.0.1.0-10.0.1.255 : accept, 10.0.1.1-10.0.2.255 : drop };fail
+ip saddr vmap { 1.1.1.1-1.1.1.255 : accept, 1.1.1.0-1.1.2.1 : drop};fail