[Digikam-devel] [Bug 192085] digiKam suddenly crashed when managing pictures

Gilles Caulier caulier.gilles at gmail.com
Fri Jun 12 18:17:32 BST 2009


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





--- Comment #19 from Gilles Caulier <caulier gilles gmail com>  2009-06-12 19:17:31 ---
Andreas,

libexiv2 crash with this call:

http://lxr.kde.org/source/KDE/kdegraphics/libs/libkexiv2/libkexiv2/kexiv2exif.cpp#563

when digiKam ask exif color space tag value from this call :

http://lxr.kde.org/source/extragear/graphics/digikam/libs/dimg/loaders/dimgloader.cpp#196

and this one :

http://lxr.kde.org/source/KDE/kdegraphics/libs/libkexiv2/libkexiv2/kexiv2image.cpp#371

I can reproduce with image provided by Sergei.

The question is why Exiv2 crash when i try to convert this tag value to long.

Look image content :

[gilles at localhost test]$ exiv2 -pv BKO192085.jpeg
0x0112 Image        Orientation                 Short       1  1
0x011a Image        XResolution                 Rational    1  960000/10000
0x011b Image        YResolution                 Rational    1  960000/10000
0x0128 Image        ResolutionUnit              Short       1  2
0x0131 Image        Software                    Ascii      28  ACD Systems
Digital Imaging
0x0132 Image        DateTime                    Ascii      20  2008:12:22
23:02:48
0x0213 Image        YCbCrPositioning            Short       1  1
0x8769 Image        ExifTag                     Long        1  174
0x9290 Photo        SubSecTime                  Ascii       4  140
0xa001 Photo        ColorSpace                  Short       0
0xa002 Photo        PixelXDimension             Long        1  850
0xa003 Photo        PixelYDimension             Long        1  680
0x0103 Thumbnail    Compression                 Short       1  6
0x0201 Thumbnail    JPEGInterchangeFormat       Long        1  270
0x0202 Thumbnail    JPEGInterchangeFormatLength Long        1  8313
[gilles at localhost test]$

... or perhaps it's due to try to convert short value to long ??? Why... It's
not illegal. And i use this function with other image without problem. It due
because tag has a null value ?

Gilles Caulier

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Digikam-devel mailing list