From kde-commits Wed Jun 20 17:46:58 2007 From: Martin Pley Date: Wed, 20 Jun 2007 17:46:58 +0000 To: kde-commits Subject: branches/KDE/3.5/kdelibs/kio/kio Message-Id: <1182361618.803824.17786.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=118236162924384 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;