Review Request: Don't hang when determining MIME type of corrupted files

Peter Penz peter.penz19 at
Sat Aug 20 18:21:57 BST 2011

This is an automatically generated e-mail. To reply, visit:

Review request for kdelibs and David Faure.


If KMimeTypeRepository::findFromContent() tries to determine MIME from a file that cannot be read, such as on a corrupted optical disc, a read attempt is made in KMimeMagicMatch::match() for every available rule, resulting in UI hangs (e.g. file dialogs, dolphin) for tens of minutes (see for more details).

I've submitted this patch here on behalf of Miroslav ?os, who has submitted the bug-report and also has written the patch.

This addresses bug 280446.


  kdecore/services/kmimetype.cpp 955bf62 
  kdecore/services/kmimetyperepository.cpp 6ff3d16 





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the kde-core-devel mailing list