mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2026-05-25 13:08:28 -04:00
OSS Fuzz: set image allocation limit to 2000 MiB
This commit is contained in:
committed by
Mirco Miranda
parent
9ddad16767
commit
6017099044
@@ -29,6 +29,7 @@
|
|||||||
#include <QBuffer>
|
#include <QBuffer>
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
#include <QImage>
|
#include <QImage>
|
||||||
|
#include <QImageReader>
|
||||||
|
|
||||||
#include "ani_p.h"
|
#include "ani_p.h"
|
||||||
#include "avif_p.h"
|
#include "avif_p.h"
|
||||||
@@ -62,6 +63,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
|
|||||||
int argc = 0;
|
int argc = 0;
|
||||||
QCoreApplication a(argc, nullptr);
|
QCoreApplication a(argc, nullptr);
|
||||||
|
|
||||||
|
QImageReader::setAllocationLimit(2000);
|
||||||
|
|
||||||
QImageIOHandler* handler = new HANDLER();
|
QImageIOHandler* handler = new HANDLER();
|
||||||
|
|
||||||
QImage i;
|
QImage i;
|
||||||
|
|||||||
Reference in New Issue
Block a user