Fix crash on malformed files

This commit is contained in:
Mirco Miranda
2025-10-06 01:04:40 +02:00
parent 3c8539d53d
commit b9bfeedbc1
2 changed files with 19 additions and 8 deletions

View File

@ -350,6 +350,12 @@ protected:
static ChunkList innerFromDevice(QIODevice *d, bool *ok, IFFChunk *parent = nullptr);
/*!
* \brief dataBytes
* \return Maximum usable cache data size.
*/
quint32 dataBytes() const;
private:
char _chunkId[4];