Revision 64a7238...

Go back to digest for 1st December 2013

Features in KDE Base

Albert Astals Cid committed changes in [kdelibs/KDE/4.11] kdecore/io/klimitediodevice.cpp:

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

File Changes

Modified 1 files
  • kdecore/io/klimitediodevice.cpp
1 files changed in total