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

            Bug ID: 415771
           Summary: Metaengine segmentation fault (11) crash when loading
                    corrupt file with ImageMagick codec
           Product: digikam
           Version: unspecified
          Platform: macOS Disk Images
                OS: macOS
            Status: REPORTED
          Severity: crash
          Priority: NOR
         Component: Metadata-Engine
          Assignee: digikam-bugs-n...@kde.org
          Reporter: mich...@qedcode.com
  Target Milestone: ---

Created attachment 124830
  --> https://bugs.kde.org/attachment.cgi?id=124830&action=edit
A corrupt image file

SUMMARY
When importing images, the scanner tries to load metadata from a corrupted
file. The program crashes rather than skipping the bad file.

STEPS TO REPRODUCE
1. Drop the corrupted file (attached) into the source folder
2. Scan for new images
3. The program crashes

OBSERVED RESULT
digikam.metaengine: Cannot load metadata from file /Users/jperry/Photos/Various
Photos/Blog Photos/2012 Craft Fair/Final Craft Fair Flyer.jpeg  (Error # 11 : 
/Users/jperry/Photos/Various Photos/Blog Photos/2012 Craft Fair/Final Craft
Fair Flyer.jpeg: The file contains data of an unknown image type
digikam.dimg: "/Users/jperry/Photos/Various Photos/Blog Photos/2012 Craft
Fair/Final Craft Fair Flyer.jpeg" : "JPEG" file identified
digikam.dimg: "/Users/jperry/Photos/Various Photos/Blog Photos/2012 Craft
Fair/Final Craft Fair Flyer.jpeg" : "QIMAGE" file identified
digikam.dimg.qimage: Can not load " "/Users/jperry/Photos/Various Photos/Blog
Photos/2012 Craft Fair/Final Craft Fair Flyer.jpeg" " using
DImg::DImgQImageLoader!
digikam.dimg.qimage: Error message from loader: "Unsupported image format"
digikam.dimg: "/Users/jperry/Photos/Various Photos/Blog Photos/2012 Craft
Fair/Final Craft Fair Flyer.jpeg" : "IMAGEMAGICK" file identified
digikam.dimg: Try to load image with ImageMagick codecs
Segmentation fault: 11

EXPECTED RESULT
The program should skip the corrupt file.

SOFTWARE/OS VERSIONS
macOS: Catalina 10.15.1

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to