mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2026-01-30 18:20:07 -05:00
iff: Fix crash on malformed files
oss-fuzz/455510771
This commit is contained in:
@ -617,7 +617,7 @@ CAMGChunk::CAMGChunk() : IFFChunk()
|
||||
|
||||
bool CAMGChunk::isValid() const
|
||||
{
|
||||
if (bytes() != 4) {
|
||||
if (dataBytes() != 4) {
|
||||
return false;
|
||||
}
|
||||
return chunkId() == CAMGChunk::defaultChunkId();
|
||||
|
||||
Reference in New Issue
Block a user