[Okular-devel] [okular] [Bug 328182] Okular hangs when opening cbz archive containing xml file

Albert Astals Cid aacid at kde.org
Sat Nov 30 21:44:42 UTC 2013


https://bugs.kde.org/show_bug.cgi?id=328182

Albert Astals Cid <aacid at kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CONFIRMED                   |RESOLVED
   Version Fixed In|                            |4.11.5
         Resolution|---                         |FIXED
      Latest Commit|                            |http://commits.kde.org/kdel
                   |                            |ibs/64a7238c3c082b174e47c38
                   |                            |96d6eb0f5c52ab461

--- Comment #2 from Albert Astals Cid <aacid at kde.org> ---
Git commit 64a7238c3c082b174e47c3896d6eb0f5c52ab461 by Albert Astals Cid.
Committed on 30/11/2013 at 21:33.
Pushed by aacid into branch 'KDE/4.11'.

Make KLimitedIODevice::bytesAvailable return the numbers of bytesAvaliable to
read

At the moment KLimitedIODevice::bytesAvailable is returning at least the size
of the file, so QIODevice::atEnd never returns true because it thinks there are
more bytes to read. This makes that if you feed an "invalid" svg like "<?xml
version="1.0"?>" to the QImageReader it infinite loops believing there will be
more stuff to read but then read() always returns 0 but then bytesAvailable
says there are more and it stays there forever.
FIXED-IN: 4.11.5
REVIEW: 114226

M  +1    -1    kdecore/io/klimitediodevice.cpp

http://commits.kde.org/kdelibs/64a7238c3c082b174e47c3896d6eb0f5c52ab461

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list