Skip to content

[mdns] Support for fuzzing browses#1067

Open
david-cermak wants to merge 8 commits into
espressif:masterfrom
david-cermak:feat/mdns_fuzz_browse
Open

[mdns] Support for fuzzing browses#1067
david-cermak wants to merge 8 commits into
espressif:masterfrom
david-cermak:feat/mdns_fuzz_browse

Conversation

@david-cermak
Copy link
Copy Markdown
Collaborator

Related to #1066

also updates browse PTR model to support TTL=0/removal
@david-cermak david-cermak force-pushed the feat/mdns_fuzz_browse branch 4 times, most recently from 952585f to f5a0dc6 Compare May 28, 2026 08:09
Packets with 11 bytes passed the old length check but caused a read
past the RX buffer when loading the additional RR count field.
browse_init stores service and proto with strlen+1 allocations, but
packet parsing copied MDNS_NAME_BUF_LEN bytes into browse snapshots.
Free browse sync pending lists on packet parse errors, tear down async
searches detached by search_finish in the host unit test, and replace
reassigned browse hostnames without leaking the old allocation.
Key-only TXT records leave value NULL; comparing them with memcmp
triggered UBSan when fuzzed browse responses updated existing results.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant