Add Atheris fuzz harnesses for URL, header, and decoder parsing#955
Draft
Kludex wants to merge 1 commit into
Draft
Add Atheris fuzz harnesses for URL, header, and decoder parsing#955Kludex wants to merge 1 commit into
Kludex wants to merge 1 commit into
Conversation
Adds coverage-guided fuzz targets for the parts of httpx2 that consume untrusted server input: `urlparse`, `Headers`, and the content-encoding decoders (deflate, gzip, brotli, zstd). Designed to be wired into OSS-Fuzz.
Member
Author
|
@manunio as the fuzzer expert, and since you've helped me a lot on python-multipart, would you be able to help me here? I'm not sure I have the best fuzzer setup. 😞 |
|
Hey! Thanks for the ping. I'm actually out sick with a fever right now, but
I'd be happy to take a look at your fuzzer setup as soon as I'm recovered
and back at my desk 🤒.
Kind regards,
Manu
…On Sun, May 17, 2026, 6:52 PM Marcelo Trylesinski ***@***.***> wrote:
*Kludex* left a comment (pydantic/httpx2#955)
<#955 (comment)>
@manunio <https://github.com/manunio> as the fuzzer expert, and since
you've helped me a lot on python-multipart, would you be able to help me
here? I'm not sure I have the best fuzzer setup. 😞
—
Reply to this email directly, view it on GitHub
<#955 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACAGE2GME6R6CLMOK6HHDHL43G4KBAVCNFSM6AAAAACZBMXLFOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DINZQHAYDAMBSGE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Member
Author
No hurry here. Wishing you a quick recover! 🙏 |
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
fuzz/for the parts of httpx2 that consume untrusted server input:urlparse,Headers, and the content-encoding decoders (deflate, gzip, brotli, zstd).compile_python_fuzzer(same layout aspython-multipart). No production code is touched.Test plan
uv pip install atheris(requires a libFuzzer-enabled Clang locally)uv run python fuzz/fuzz_urlparse.py -atheris_runs=10000exits cleanlyuv run python fuzz/fuzz_headers.py -atheris_runs=10000exits cleanlyuv run python fuzz/fuzz_decoders.py -atheris_runs=10000exits cleanlyAI Disclaimer
This PR was developed with the assistance of either Claude or Codex. I've reviewed and verified the changes.