Repository navigation
fix(hyfuzz): handle non-UTF-8 output/seeds, validate executable --hyb, and report executed cases - #1425
Closed
umpireboulianne-design wants to merge 1 commit into
Closed
fix(hyfuzz): handle non-UTF-8 output/seeds, validate executable --hyb, and report executed cases#1425umpireboulianne-design wants to merge 1 commit into
umpireboulianne-design wants to merge 1 commit into
Conversation
…, and report executed cases (limitlessprojects#1327)
Owner
|
Queue-reset sweep: this repo now runs a rolling conveyor, and open PRs This is not a verdict on the work. If this change still matters:
Wildcard holds (verdict window 2026-11-01) and Pareto land candidates are |
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.
Fixes #1327
Summary
check_one): Passencoding="utf-8", errors="replace"tosubprocess.runincheck_oneso non-UTF-8 bytes in compiler diagnostics do not raiseUnicodeDecodeErrorand abort the fuzz campaign.load_corpus): Filteros.listdir(corpus_dir)withos.path.isfile(...)so.hydirectories do not raiseIsADirectoryError, and read corpus seed files withencoding="utf-8", errors="replace"so byte-mutated seeds do not crash startup.--hyb(main): Validateos.access(args.hyb, os.X_OK)during CLI startup and exit immediately with code2and a diagnostic onstderrinstead of running 10 doomed cases.main): Track actualexecutedcases in the fuzz loop and print{executed} casesin the summary line rather than the requestedargs.caseswhen aborting early after 10 failures.Testing
tools/fuzz/test_hyfuzz.pycovering non-UTF-8 subprocess output (normal reject and ICE detection),.hydirectories and non-UTF-8 corpus seeds inload_corpus, non-executable--hybstartup rejection, and accurate case count reporting on early abort.