diff --git a/src/imageformats/pcx.cpp b/src/imageformats/pcx.cpp index ddde33e..e9b0a23 100644 --- a/src/imageformats/pcx.cpp +++ b/src/imageformats/pcx.cpp @@ -684,6 +684,12 @@ bool PCXHandler::canRead(QIODevice *device) return false; } + // We do not support sequential images + // We need to know the current position to properly read the header + if (device->isSequential()) { + return false; + } + qint64 oldPos = device->pos(); char head[1];