]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
add regression test for rbtdb.c version-mismatch issue
authorEvan Hunt <each@isc.org>
Fri, 18 Nov 2011 19:32:13 +0000 (19:32 +0000)
committerEvan Hunt <each@isc.org>
Fri, 18 Nov 2011 19:32:13 +0000 (19:32 +0000)
bin/tests/system/rpz/ns3/crash2
bin/tests/system/rpz/test2
bin/tests/system/rpz/tests.sh

index 8c1982073d42c65f359384e54e2fdf089b7ce7b5..d042c3c7bf5854074b579fd2226d705d29d88dfe 100644 (file)
@@ -12,7 +12,7 @@
 ; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 ; PERFORMANCE OF THIS SOFTWARE.
 
-; $Id: crash2,v 1.2 2011/10/28 11:46:50 marka Exp $
+; $Id: crash2,v 1.3 2011/11/18 19:32:13 each Exp $
 
 ; a valid zone containing records that caused crashes
 
@@ -23,3 +23,6 @@ ns    A       10.53.0.3
 
 ; #18 in test1, crashed new ASSERT() in rbtdb.c
 c1     A       172.16.1.1
+
+; #16 in test2, crashed new ASSERT() in rbtdb.c
+c2     A       172.16.1.16
index 9f157d99d6d7236ab7f999589e1f7f4d702cd544..3038260f5b8626be6c1654d32dca3d131f794308 100644 (file)
@@ -12,7 +12,7 @@
 ; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 ; PERFORMANCE OF THIS SOFTWARE.
 
-; $Id: test2,v 1.5 2011/10/13 01:32:32 vjs Exp $
+; $Id: test2,v 1.6 2011/11/18 19:32:13 each Exp $
 
 
 ; Use comment lines instead of blank lines to combine update requests into
@@ -53,6 +53,10 @@ send
 ; prefer QNAME to IP for a5-4.tld2
 update add 32.4.5.168.192.rpz-ip.bl    300 CNAME a12.tld2.
 update add a5-4.tld2.bl                        300 CNAME a14.tld4.
-
-; wildcard CNAMEs
-;update add 
+;
+; assert in rbtdb.c
+;      16
+update add 32.16.1.16.172.rpz-ip.bl    300 CNAME .
+send
+update add c2.crash2.tld3.bl-2         300 A   127.0.0.16
+send
index 6b0894b7355c0c2eaafb7aedb4b0343eb39764da..2684cc6601049e64f1b145f36d8ec431c085579a 100644 (file)
@@ -12,7 +12,7 @@
 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 # PERFORMANCE OF THIS SOFTWARE.
 
-# $Id: tests.sh,v 1.9 2011/10/28 11:46:50 marka Exp $
+# $Id: tests.sh,v 1.10 2011/11/18 19:32:13 each Exp $
 
 # test response policy zones (RPZ)
 
@@ -231,6 +231,7 @@ nochange a4-1-aaaa.tld2 -tAAAA
 addr 127.0.0.1  a5-1-2.tld2            # 11 prefer smallest policy address
 addr 127.0.0.1  a5-3.tld2              # 12 prefer first conflicting IP zone
 addr 14.14.14.14 a5-4.tld2             # 13 prefer QNAME to IP
+nxdomain c2.crash2.tld3                        # 16 assert in rbtdb.c
 end_group
 
 # check that IP addresses for previous group were deleted from the radix tree