mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 11:15:54 +03:00
[PR #2849] [MERGED] Encapsulate type bit maps, save original encoding, and improve fuzzer #3369
Labels
No labels
blocked
breaking-change
bug
bug:critical
bug:tests
cleanup
compliance
compliance
compliance
crate:all
crate:client
crate:native-tls
crate:proto
crate:recursor
crate:resolver
crate:resolver
crate:rustls
crate:server
crate:util
dependencies
docs
duplicate
easy
easy
enhance
enhance
enhance
feature:dns-over-https
feature:dns-over-quic
feature:dns-over-tls
feature:dnsssec
feature:global_lb
feature:mdns
feature:tsig
features:edns
has workaround
ops
perf
platform:WASM
platform:android
platform:fuchsia
platform:linux
platform:macos
platform:windows
pull-request
question
test
tools
tools
trust
unclear
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hickory-dns#3369
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hickory-dns/hickory-dns/pull/2849
Author: @divergentdave
Created: 3/13/2025
Status: ✅ Merged
Merged: 3/17/2025
Merged by: @djc
Base:
main← Head:david/fuzzing📝 Commits (8)
82b72a8Un-ignore CSYNC in fuzzer61b59bbMove BitMapReadState downf15d4ccAdd RecordTypeSet structfddf16eStore original encoding of type bit mapsbe528a7Implement BinEncodable for RecordTypeSetd38f6e8Implement RecordDataDecodable for RecordTypeSet86502e7Enable DNSSEC in fuzzer target22083d2Compare records with pretty_assertions in fuzzer📊 Changes
11 files changed (+705 additions, -242 deletions)
View changed files
📝
crates/proto/src/dnssec/rdata/nsec.rs(+26 -18)📝
crates/proto/src/dnssec/rdata/nsec3.rs(+37 -18)📝
crates/proto/src/rr/mod.rs(+2 -1)📝
crates/proto/src/rr/rdata/csync.rs(+34 -15)📝
crates/proto/src/rr/type_bit_map.rs(+236 -159)📝
crates/proto/src/serialize/txt/parse_rdata.rs(+3 -2)📝
crates/proto/src/serialize/txt/rdata_parsers/csync.rs(+4 -4)📝
crates/server/src/store/in_memory/authority.rs(+5 -5)📝
fuzz/Cargo.lock(+354 -3)📝
fuzz/Cargo.toml(+2 -1)📝
fuzz/fuzz_targets/message.rs(+2 -16)📄 Description
This PR encapsulates type bit maps handling in a new struct. This stores record types in a sorted data structure, and saves the original encoding, if available, to be reused when emitting the record again.
In the fuzzer,
CSYNCrecords are no longer ignored, and all DNSSEC records are now included, thanks to enabling thednssec-aws-lc-rsCargo feature. I replaced the line-based comparison printed upon failure with thepretty_assertionscrate, which also provides context and ANSI color codes.I've been running the fuzzer for about half an hour with this fix, and so far I haven't found any more round trip issues.
This closes #2815.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.