mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-11-22 10:02:43 -05:00
Fix oss-fuzz compilation error
This commit is contained in:
@ -11,9 +11,12 @@
|
|||||||
#include <QBuffer>
|
#include <QBuffer>
|
||||||
#include <QColor>
|
#include <QColor>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QLoggingCategory>
|
|
||||||
|
|
||||||
Q_DECLARE_LOGGING_CATEGORY(LOG_IFFPLUGIN)
|
#ifdef QT_DEBUG
|
||||||
|
Q_LOGGING_CATEGORY(LOG_IFFPLUGIN, "kf.imageformats.plugins.iff", QtDebugMsg)
|
||||||
|
#else
|
||||||
|
Q_LOGGING_CATEGORY(LOG_IFFPLUGIN, "kf.imageformats.plugins.iff", QtWarningMsg)
|
||||||
|
#endif
|
||||||
|
|
||||||
#define RECURSION_PROTECTION 10
|
#define RECURSION_PROTECTION 10
|
||||||
|
|
||||||
|
|||||||
@ -19,12 +19,15 @@
|
|||||||
#include <QDateTime>
|
#include <QDateTime>
|
||||||
#include <QImage>
|
#include <QImage>
|
||||||
#include <QIODevice>
|
#include <QIODevice>
|
||||||
|
#include <QLoggingCategory>
|
||||||
#include <QPoint>
|
#include <QPoint>
|
||||||
#include <QSize>
|
#include <QSize>
|
||||||
#include <QSharedPointer>
|
#include <QSharedPointer>
|
||||||
|
|
||||||
#include "microexif_p.h"
|
#include "microexif_p.h"
|
||||||
|
|
||||||
|
Q_DECLARE_LOGGING_CATEGORY(LOG_IFFPLUGIN)
|
||||||
|
|
||||||
// Main chunks (Standard)
|
// Main chunks (Standard)
|
||||||
#define CAT__CHUNK QByteArray("CAT ")
|
#define CAT__CHUNK QByteArray("CAT ")
|
||||||
#define FILL_CHUNK QByteArray(" ")
|
#define FILL_CHUNK QByteArray(" ")
|
||||||
|
|||||||
@ -11,15 +11,8 @@
|
|||||||
|
|
||||||
#include <QIODevice>
|
#include <QIODevice>
|
||||||
#include <QImage>
|
#include <QImage>
|
||||||
#include <QLoggingCategory>
|
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
|
|
||||||
#ifdef QT_DEBUG
|
|
||||||
Q_LOGGING_CATEGORY(LOG_IFFPLUGIN, "kf.imageformats.plugins.iff", QtDebugMsg)
|
|
||||||
#else
|
|
||||||
Q_LOGGING_CATEGORY(LOG_IFFPLUGIN, "kf.imageformats.plugins.iff", QtWarningMsg)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
class IFFHandlerPrivate
|
class IFFHandlerPrivate
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|||||||
@ -17,8 +17,7 @@
|
|||||||
#include <QImage>
|
#include <QImage>
|
||||||
#include <QLoggingCategory>
|
#include <QLoggingCategory>
|
||||||
|
|
||||||
Q_DECLARE_LOGGING_CATEGORY(LOG_IFFPLUGIN)
|
Q_LOGGING_CATEGORY(LOG_SCTPLUGIN, "kf.imageformats.plugins.scitex", QtWarningMsg)
|
||||||
Q_LOGGING_CATEGORY(LOG_IFFPLUGIN, "kf.imageformats.plugins.scitex", QtWarningMsg)
|
|
||||||
|
|
||||||
#define CTRLBLOCK_SIZE 256
|
#define CTRLBLOCK_SIZE 256
|
||||||
#define PRMSBLOCK_SIZE_CT 256
|
#define PRMSBLOCK_SIZE_CT 256
|
||||||
|
|||||||
Reference in New Issue
Block a user