Skip to content

fix(dns): harden DNS name parsing - #966

Merged
ryanfowler merged 1 commit into
mainfrom
fix/dns-name-validation
Aug 8, 2026
Merged

fix(dns): harden DNS name parsing#966
ryanfowler merged 1 commit into
mainfrom
fix/dns-name-validation

Conversation

@ryanfowler

Copy link
Copy Markdown
Owner

Summary

  • enforce DNS encoded-name, label-count, and compression-pointer limits
  • preserve escaped presentation names during wire matching and round trips
  • reuse the validated wire name codec for SVCB and Windows system records

Validation

  • cargo fmt --check
  • cargo clippy --locked --all-targets --all-features -- -D warnings
  • cargo test --locked --all-features --lib --bins
  • cargo test --locked --all-features --test cli --test formatting --test grpc --test har --test http --test install --test network --test terminal --test update --test websocket -- --test-threads=2

Enforce encoded name, label count, and compression pointer limits. Reuse the validated wire name codec for SVCB parsing and Windows records.
@ryanfowler
ryanfowler enabled auto-merge (squash) August 8, 2026 09:48
@ryanfowler
ryanfowler merged commit 36a1009 into main Aug 8, 2026
4 checks passed
@ryanfowler
ryanfowler deleted the fix/dns-name-validation branch August 8, 2026 09:52
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