mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2026-07-03 17:19:12 -04:00
Check the input buffer before passing it to libheif
This commit is contained in:
committed by
Daniel Novomeský
parent
c532227d43
commit
511a22f0b4
@@ -10,6 +10,7 @@
|
||||
#ifndef KIMG_HEIF_P_H
|
||||
#define KIMG_HEIF_P_H
|
||||
|
||||
#include <QByteArray>
|
||||
#include <QImage>
|
||||
#include <QImageIOPlugin>
|
||||
|
||||
@@ -28,6 +29,7 @@ public:
|
||||
void setOption(ImageOption option, const QVariant &value) override;
|
||||
bool supportsOption(ImageOption option) const override;
|
||||
private:
|
||||
static bool isSupportedBMFFType(const QByteArray &header);
|
||||
bool ensureParsed() const;
|
||||
bool ensureDecoder();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user