Skip to content

Fix RP compression bug and add RFC 3597 §4 tests#702

Open
SebastiaanYN wants to merge 2 commits into
NLnetLabs:mainfrom
SebastiaanYN:sebastiaan/rp-compression-bug
Open

Fix RP compression bug and add RFC 3597 §4 tests#702
SebastiaanYN wants to merge 2 commits into
NLnetLabs:mainfrom
SebastiaanYN:sebastiaan/rp-compression-bug

Conversation

@SebastiaanYN

Copy link
Copy Markdown
Contributor

Rp::compose_rdata called append_compressed_name() which violates RFC 3597 §4: only RFC 1035 types may compress rdata names. RP is RFC 1183. Remove the can_compress() branch so names always compose without compression.

Add compression tests covering every DNS record type whose rdata contains a domain name, and parser tests ensuring non-RFC 1035 types are still parsed when compressed.

`Rp::compose_rdata` called `append_compressed_name()` which violates
RFC 3597 §4: only RFC 1035 types may compress rdata names. RP is
RFC 1183. Remove the `can_compress()` branch so names always compose
without compression.

Add compression tests covering every DNS record type whose rdata
contains a domain name, and parser tests ensuring non-RFC 1035
types are still parsed when compressed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant