From: Stefan Bühler Date: Thu, 28 Dec 2017 22:10:01 +0000 (+0100) Subject: test-dnsrecords: add tests related to #6101 X-Git-Tag: dnsdist-1.3.0~172^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=12624d4833ee88623aa8e54f6ad739795b3df00c;p=pdns test-dnsrecords: add tests related to #6101 --- diff --git a/pdns/test-dnsrecords_cc.cc b/pdns/test-dnsrecords_cc.cc index 3b1402a96..8efc5284e 100644 --- a/pdns/test-dnsrecords_cc.cc +++ b/pdns/test-dnsrecords_cc.cc @@ -239,7 +239,9 @@ BOOST_AUTO_TEST_CASE(test_record_types_bad_values) { cases_t cases = boost::assign::list_of (case_t(QType::A, "932.521.256.42", zone, false)) // hollywood IP - (case_t(QType::A, "932.521", zone, false)) // truncated IP + (case_t(QType::A, "932.521", zone, false)) // truncated hollywood IP + (case_t(QType::A, "10.0", zone, true)) // truncated IP + (case_t(QType::A, "10.0.0.1.", zone, false)) // trailing dot (case_t(QType::A, "\xca\xec\x00", wire, false)) // truncated wire value (case_t(QType::A, "127.0.0.1 evil data", zone, false)) // trailing garbage (case_t(QType::AAAA, "23:00", zone, false)) // time when this test was written