Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions fuzzing/fuzzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
char error [80];
int num_chans, bps, mode, qmode;
int64_t total_samples;
int retval = 0;

times_called++;

Expand All @@ -147,10 +146,8 @@ int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
raw_wv.eptr = raw_wv.dptr + size;
wpc = WavpackOpenFileInputEx64 (&raw_reader, &raw_wv, NULL, error, flags, 15);

if (!wpc) {
retval = 1;
if (!wpc)
goto exit;
}

opens++;
num_chans = WavpackGetNumChannels (wpc);
Expand Down Expand Up @@ -265,7 +262,7 @@ int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
printf ("LLVMFuzzerTestOneInput(): %lld calls, %lld opens, %lld seeks, %lld tag writes, %lld samples, %lld text & %lld binary tags\n",
times_called, opens, seeks, tag_writes, samples_decoded, text_tags, binary_tags);

return retval;
return 0;
}

#ifdef STAND_ALONE_LENGTH // max file length for stand-alone testing (sans fuzz)
Expand Down
Loading