Commit e587cfd1 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

added some more pathological cases to badText.

actually I'm not sure if these should be rejected or accepted.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1027 e5f2f494-b856-4b98-b285-d166d9295462
parent 1e4b9fbb
......@@ -73,6 +73,13 @@ TEST_F(Rdata_DNSKEY_Test, badText)
InvalidRdataText);
EXPECT_THROW(generic::DNSKEY("257 3 5 BAAAAAAAAAAAD"),
BadBase64String);
// Should this be allowed?
// EXPECT_THROW(generic::DNSKEY("257 3 5BEAAEFTd"),
// InvalidRdataText);
// How about this? It's even more confusing for the parser because
// it could be ambiguous '51 EAAA' vs '5 1EAA..'
// EXPECT_THROW(generic::DNSKEY("257 3 51EAAEFTd"),
// InvalidRdataText);
}
TEST_F(Rdata_DNSKEY_Test, toWireRenderer)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment