mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 11:15:54 +03:00
[GH-ISSUE #2012] Debug assert triggered: record types do not match, DNSKEY <> Some(Unknown(48)) #850
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#850
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?
Originally created by @oherrala on GitHub (Aug 31, 2023).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/2012
Describe the bug
While fuzzing the run crashed with
The debug assert that triggered is this:
github.com/bluejekyll/trust-dns@a0523a5823/crates/proto/src/rr/resource.rs (L537C1-L546C11)To Reproduce
Steps to reproduce the behavior:
This can be triggered with running the
fuzz/fuzz_targets/message.rsfuzzer.The following binary message should be put to
fuzz/artifacts/message/crash-35f0d2e1df3405825743cfaf42bccd0c84c4b219:and then run:
Expected behavior
The debug assert is probably there to catch some erroneous condition? This is one way to trigger that error condition.
System:
a0523a5823)@bluejekyll commented on GitHub (Sep 3, 2023):
looks like something is going on in regards to encoding and decoding. There are some options in DNSKEY that are no longer relevant and I'm guessing that this object has enabled something deprecated and the decoder zeros out the field while it might be possible to create it initially...
@bluejekyll commented on GitHub (Sep 19, 2023):
I may have fixed this in #2025 as it looks like the same assertion that's failing.
@oherrala commented on GitHub (Sep 20, 2023):
@bluejekyll This panic is gone with #2025, but fuzzer immediately found panic on another place. I'll make a separate issue out from it.
@bluejekyll commented on GitHub (Sep 20, 2023):
fixed in #2025