Repository navigation
fix(fuzz): reject documented Atheris input errors - #1190
Open
gaborbernat wants to merge 3 commits into
Open
gaborbernat wants to merge 3 commits into
gaborbernat wants to merge 3 commits into
Conversation
Atheris discards Python callback return values. Preload one runtime ELF that forwards documented errors as native rejections and resets that state for the next input. Preserve unexpected exceptions and optional custom mutations. Validate qualified callback ownership before loading Atheris. Concrete whole-API targets remain follow-up work for tox-dev#1014.
gaborbernat
marked this pull request as ready for review
October 7, 2026 00:09
Merging this PR will not alter performance
Comparing Footnotes
|
This branch has not been deployed
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.
Atheris ignores Python callback return values, so returning
-1cannot exclude inputs that raise documented API errors. Its pinned callback implementation returns zero after invoking Python. The native bridge forwards the documented rejection result to libFuzzer and resets that state before each input.The bridge links the released Atheris 3.1.0 runtime archive into one preloaded shared library, following Atheris's external-runtime requirements. It forwards optional custom mutations and preserves unexpected exceptions. Qualified export validation rejects duplicate and missing callback ownership before fuzzing starts.
Refs #1014. This slice supplies the runtime and ownership-validation mechanism. The concrete 209-export callback inventory, protected input layout and incremental target contracts remain separate acceptance work.