{{ message }}
Repository navigation
test: add fuzzing coverage for incoming packet parsing - #1829
Merged
Merged
Conversation
bdraco
marked this pull request as ready for review
August 28, 2026 20:56
Contributor
|
|
bluetoothbot
approved these changes
Aug 28, 2026
bluetoothbot
left a comment
Contributor
There was a problem hiding this comment.
Tip
No blocking issues found — ready to merge.
5 tasks done
Contributor
There was a problem hiding this comment.
Pull request overview
Adds reproducible Hypothesis fuzz coverage for DNSIncoming packet parsing.
Changes:
- Tests malformed, mutated, truncated, compressed-name, and NSEC inputs.
- Configures bounded CI and extended local fuzzing profiles.
- Adds Hypothesis and ignores its generated state.
Reviewed changes
Copilot reviewed 3 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
tests/test_fuzz_incoming.py |
Adds parser fuzz tests and valid-packet controls. |
tests/conftest.py |
Configures Hypothesis profiles and optional collection. |
pyproject.toml |
Adds the Hypothesis development dependency. |
poetry.lock |
Locks Hypothesis and its dependency. |
.gitignore |
Ignores Hypothesis state. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Contributor
bluetoothbot
approved these changes
Aug 28, 2026
bluetoothbot
left a comment
Contributor
There was a problem hiding this comment.
Tip
No blocking issues found — ready to merge.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Adds hypothesis based fuzzing for
DNSIncomingahead of planned parser performance work; the constructor contract is that any byte sequence parses or fails quietly withvalid = False, never raising.Details
tests/test_fuzz_incoming.pycovers raw garbage, mutated and truncated valid packets, spliced compression pointers, adversarial name sections built from label and pointer tokens, and NSEC bitmap mutations; every parsed record is also touched via repr and hash, and a positive control pins that the corpus itself parses fullyHYPOTHESIS_PROFILE=longdeep runs, which are manual for nowhypothesisjoins the dev dependency group;.hypothesis/is gitignoredTest plan
poetry run pytest testspasses, 490 passedHYPOTHESIS_PROFILE=longrun, 50k examples per test, no failures