Skip to content

Commit

Permalink
Add fuzz-minmdns-packet-parsing dictionary and corpus
Browse files Browse the repository at this point in the history
Dictionary extracted from mDNS constants. Corpus manually generated by running commissionable and commisisoned Docker emulated lock-app
  • Loading branch information
zcduthie committed Feb 14, 2024
1 parent 7ae6c8d commit 1279596
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
Binary file not shown.
Binary file not shown.
28 changes: 28 additions & 0 deletions integrations/fuzz/fuzz-minmdns-packet-parsing.dict
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# MDNS Dictionary Constants extracted from connectedhomeip/src/lib/dnssd/minimal_mdns/core/Constants.h

# QType
A = "\x01"
NS = "\x02"
CNAME = "\x05"
SOA = "\x06"
NULLVALUE = "\x0A"
WKS = "\x0B"
PTR = "\x0C"
HINFO = "\x0D"
MINFO = "\x0E"
MX = "\x0F"
TXT = "\x10"
ISDN = "\x14"
AAAA = "\x1C"
SRV = "\x21"
DNAM = "\x27"
ANY = "\xFF"

# QClass
IN_UNICAST = "\x80\x01"
IN_FLUSH = "\x80\x01"

# ResourceType
kAnswer = "\x01"
kAuthority = "\x02"
kAdditional = "\x03"

0 comments on commit 1279596

Please sign in to comment.