From ad60a0b522cede4bf95b7ea93660e9caf0e1930a Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Wed, 12 Apr 2023 16:23:24 +0200 Subject: 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. --- Meta/Lagom/Fuzzers/FuzzQOALoader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Meta/Lagom/Fuzzers/FuzzQOALoader.cpp') 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; } -- cgit v1.2.3