diff options
author | Tim Schumacher <timschumi@gmx.de> | 2023-04-12 16:23:24 +0200 |
---|---|---|
committer | Tim Flynn <trflynn89@pm.me> | 2023-04-12 14:03:20 -0400 |
commit | ad60a0b522cede4bf95b7ea93660e9caf0e1930a (patch) | |
tree | ae9e4ec584b9182d3b739ade1095d9df886b11a5 /Meta/Lagom/Fuzzers/FuzzQOALoader.cpp | |
parent | 708387b850953dd49ff0e293be2da7f8370fc0da (diff) | |
download | serenity-ad60a0b522cede4bf95b7ea93660e9caf0e1930a.zip |
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.
Diffstat (limited to 'Meta/Lagom/Fuzzers/FuzzQOALoader.cpp')
-rw-r--r-- | Meta/Lagom/Fuzzers/FuzzQOALoader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Meta/Lagom/Fuzzers/FuzzQOALoader.cpp b/Meta/Lagom/Fuzzers/FuzzQOALoader.cpp index 52780971e9..a0c28cb5bb 100644 --- a/Meta/Lagom/Fuzzers/FuzzQOALoader.cpp +++ b/Meta/Lagom/Fuzzers/FuzzQOALoader.cpp @@ -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; } |