From: Evan Hunt Date: Fri, 18 Nov 2011 19:32:13 +0000 (+0000) Subject: add regression test for rbtdb.c version-mismatch issue X-Git-Tag: v9.9.0b2~1^2~2 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=75c622f53bdda9d2f69f05e06eaf7be01fc09a33;p=thirdparty%2Fbind9.git add regression test for rbtdb.c version-mismatch issue --- diff --git a/bin/tests/system/rpz/ns3/crash2 b/bin/tests/system/rpz/ns3/crash2 index 8c1982073d4..d042c3c7bf5 100644 --- a/bin/tests/system/rpz/ns3/crash2 +++ b/bin/tests/system/rpz/ns3/crash2 @@ -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 diff --git a/bin/tests/system/rpz/test2 b/bin/tests/system/rpz/test2 index 9f157d99d6d..3038260f5b8 100644 --- a/bin/tests/system/rpz/test2 +++ b/bin/tests/system/rpz/test2 @@ -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 diff --git a/bin/tests/system/rpz/tests.sh b/bin/tests/system/rpz/tests.sh index 6b0894b7355..2684cc66010 100644 --- a/bin/tests/system/rpz/tests.sh +++ b/bin/tests/system/rpz/tests.sh @@ -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