Skip to content

Fix encoding TXT records as length-prefixed character-strings - #130

Merged
samuelwilliams merged 1 commit into
Badcow:masterfrom
yeganemehr:fix/txt-character-strings
Aug 18, 2026
Merged

Fix encoding TXT records as length-prefixed character-strings#130
samuelwilliams merged 1 commit into
Badcow:masterfrom
yeganemehr:fix/txt-character-strings

Conversation

@yeganemehr

Copy link
Copy Markdown
Contributor

TXT::toWire()/fromWire() previously emitted and parsed raw text without a length byte, which dig rejects as malformed.

They now encode and decode length-prefixed data, splitting it at 255 octets.
Naturally, SPF inherits both the problem and the fix.

@samuelwilliams
samuelwilliams merged commit f9b4889 into Badcow:master Aug 18, 2026
4 checks passed
@yeganemehr
yeganemehr deleted the fix/txt-character-strings branch August 18, 2026 16:16
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.

2 participants