Skip to content

fuzzing/fuzzer.cc: return 0 when the input does not open - #263

Merged
dbry merged 1 commit into
dbry:masterfrom
JasonGross:fuzz-harness-return-0
Oct 3, 2026
Merged

dbry merged 1 commit into
dbry:masterfrom
JasonGross:fuzz-harness-return-0

Conversation

@JasonGross

Copy link
Copy Markdown
Contributor

Fixes #262. LLVMFuzzerTestOneInput returned 1 when WavpackOpenFileInputEx64() failed; libFuzzer only accepts 0 and -1. It now returns 0 on that path, so inputs that fail to open can still be kept in the corpus.

This PR was written by an AI model (Claude Opus 5.5, Anthropic).

libFuzzer accepts only 0 or -1 from LLVMFuzzerTestOneInput, and a release build treats 1 like -1, so every input that WavpackOpenFileInputEx64() rejected was kept out of the corpus.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@dbry
dbry merged commit b6485a3 into dbry:master Oct 3, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fuzzing/fuzzer.cc returns 1 for inputs that fail to open

2 participants