netty5/codec-dns/src/test/java/io/netty/handler/codec/dns
Scott Mitchell cfa5b85075 DefaultDnsRecordDecoder compression and index decode bug
Motivation:
8cf90f0512 switch a duplicate opreration to a slice operation. Typically this would be fine but DNS supports a compression (https://www.ietf.org/rfc/rfc1035 4.1.4. Message compression) where the payload contains absolute indexes which refer back to previously referenced content. Using a slice will break the ability for the indexes in the payload to correctly self reference to the index of the originial payload, and thus decoding may fail.

Modifications:
- Use duplicate instead of slice so DNS message compression and index references are preserved.

Result:
Fixes DefaultDnsRecordDecoder regression
2016-10-20 09:00:55 -07:00
..
AbstractDnsRecordTest.java [#4993] Correctly handle trailing dot in DNS requests and responses for the hostname. 2016-03-22 12:30:46 +01:00
DefaultDnsRecordDecoderTest.java DefaultDnsRecordDecoder compression and index decode bug 2016-10-20 09:00:55 -07:00
DefaultDnsRecordEncoderTest.java Add support for Client Subnet in DNS Queries (RFC7871) 2016-09-06 07:16:57 +02:00
DnsQueryTest.java Fix a test failure in DnsQueryTest 2015-05-01 12:03:44 +09:00
DnsRecordTypeTest.java Revamp DNS codec 2015-05-01 11:33:16 +09:00
DnsResponseTest.java Revamp DNS codec 2015-05-01 11:33:16 +09:00