From: Aki Tuomi Date: Thu, 24 Apr 2014 14:24:41 +0000 (+0300) Subject: Check that parser throws when all data is not consumed X-Git-Tag: rec-3.6.0-rc1~39^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1377%2Fhead;p=thirdparty%2Fpdns.git Check that parser throws when all data is not consumed --- 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