mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 12:27:35 +00:00
Fuzzers: Stop loading audio frames once the end is reached
Previously, the condition was reversed, so we would stop immediately on a file that has at least one working chunk, and we would infinitely loop on a file with no chunks.
This commit is contained in:
parent
708387b850
commit
ad60a0b522
4 changed files with 4 additions and 4 deletions
|
@ -22,7 +22,7 @@ extern "C" int LLVMFuzzerTestOneInput(uint8_t const* data, size_t size)
|
|||
auto samples = qoa->load_chunks(5 * KiB);
|
||||
if (samples.is_error())
|
||||
return 0;
|
||||
if (samples.value().size() > 0)
|
||||
if (samples.value().size() == 0)
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue