Summary: | Crash when an .exi data file is being previewed. | ||
---|---|---|---|
Product: | [Frameworks and Libraries] kio | Reporter: | Greg <greg> |
Component: | kfile | Assignee: | Carsten Pfeiffer <pfeiffer> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | mitch |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Greg
2002-12-27 22:36:13 UTC
Subject: kdegraphics/kfile-plugins/jpeg CVS commit by pfeiffer: catch exceptions CCMAIL: 52356-close@bugs.kde.org M +9 -2 kfile_jpeg.cpp 1.14 --- kdegraphics/kfile-plugins/jpeg/kfile_jpeg.cpp #1.13:1.14 @@ -190,6 +190,13 @@ bool KJpegPlugin::readInfo( KFileMetaInf // parse the jpeg file now - if (ImageInfo.scan(info.path()) == false) { + try { + if ( !ImageInfo.scan(info.path()) ) { kdDebug(7034) << "Not a JPEG file!\n"; + return false; + } + } + catch (FatalError& e) { // malformed exif data? + kdDebug(7034) << "Exception caught while parsing Exif data of: " << info.path() << endl; + e.debug_print(); return false; } |