From 60170990441a6373dea4315a5dc9c1d3aa3de16f Mon Sep 17 00:00:00 2001 From: Mirco Miranda Date: Fri, 22 May 2026 15:14:08 +0200 Subject: [PATCH] OSS Fuzz: set image allocation limit to 2000 MiB --- autotests/ossfuzz/kimgio_fuzzer.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autotests/ossfuzz/kimgio_fuzzer.cc b/autotests/ossfuzz/kimgio_fuzzer.cc index a617571..199cf3f 100644 --- a/autotests/ossfuzz/kimgio_fuzzer.cc +++ b/autotests/ossfuzz/kimgio_fuzzer.cc @@ -29,6 +29,7 @@ #include #include #include +#include #include "ani_p.h" #include "avif_p.h" @@ -62,6 +63,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) int argc = 0; QCoreApplication a(argc, nullptr); + QImageReader::setAllocationLimit(2000); + QImageIOHandler* handler = new HANDLER(); QImage i;