[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/3.5/kdelibs/kio/kio
From:       Martin Pley <martin () pley ! de>
Date:       2007-06-20 17:46:58
Message-ID: 1182361618.803824.17786.nullmailer () svn ! kde ! org
[Download RAW message or body]

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;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic