SVN commit 678100 by pley: Fix possible endless loop with broken archives. M +1 -1 klimitediodevice.h --- branches/KDE/3.5/kdelibs/kio/kio/klimitediodevice.h #678099:678100 @@ -91,7 +91,7 @@ pos = QMIN( pos, m_length ); // Apply upper limit return m_dev->at( m_start + pos ); } - virtual bool atEnd() const { return m_dev->at() >= m_start + m_length; } + virtual bool atEnd() const { return m_dev->atEnd() || m_dev->at() >= m_start + m_length; } private: QIODevice* m_dev; Q_ULONG m_start;