From 4a03d9bce3c68cfd2e80a303d8f12824ca0f2768 Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Thu, 24 Apr 2014 17:24:41 +0300 Subject: [PATCH] Check that parser throws when all data is not consumed --- pdns/test-dnsrecords_cc.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/pdns/test-dnsrecords_cc.cc b/pdns/test-dnsrecords_cc.cc index 8abf577304..c8b2558fe6 100644 --- a/pdns/test-dnsrecords_cc.cc +++ b/pdns/test-dnsrecords_cc.cc @@ -220,6 +220,7 @@ BOOST_AUTO_TEST_CASE(test_record_types_bad_values) { (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, "\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 (case_t(QType::AAAA, "23:00::15::43", zone, false)) // double compression (case_t(QType::AAAA, "2a23:00::15::", zone, false)) // ditto -- 2.47.2