Bug #479
JPEGs edited with LightZone crash Exiv2
0%
Description
Reported by Daniel Hobe:
Recently I imported some photos edited in another program (Lightzone) and the jpegs would reliably crash Exiv2 with a segfault. This was in digikam, but I can reproduce the problem with the exiv2 command line tool.
Are you interested in taking a look at the image (or more specifically
the exif data)? Anything else I can do to help?
Machine Details:
Distro: Ubuntu Dapper Drake
exiv2 version 0.10
Digikam Backtrace:
#6 Exiv2::getUShort (buf=0xa81b2c27 <Address 0xa81b2c27 out of bounds>,
byteOrder=Exiv2::bigEndian) at types.cpp:155
#7 0xb79eb793 in Exiv2::Ifd::read (this=0x81a7c10, buf=0x81b2c20 "MM",
len=826, start=-1610612729, byteOrder=Exiv2::bigEndian, shift=0)
at ifd.cpp:314
#8 0xb79e0c84 in Exiv2::ExifData::load (this=0x8198c3c, buf=0x818f4f0 "MM",
len=826) at exif.cpp:568
#9 0xb79f523a in Exiv2::JpegBase::readMetadata (this=0x8198c30)
at jpgimage.cpp:301
#10 0xb7efc0a5 in Digikam::DMetaLoader::loadWithExiv2 ()
from /usr/lib/libdigikam.so.0
#11 0xb7efcb20 in Digikam::JPEGMetaLoader::load ()
from /usr/lib/libdigikam.so.0
#12 0xb7ee9292 in Digikam::DMetadata::load () from /usr/lib/libdigikam.so.0
#13 0xb7eebe51 in Digikam::DMetadata::DMetadata ()
from /usr/lib/libdigikam.so.0
#14 0xb7d6e622 in Digikam::ScanLib::storeItemInDatabase ()
from /usr/lib/libdigikam.so.0
#15 0xb7d70047 in Digikam::ScanLib::allFiles () from /usr/lib/libdigikam.so.0
#16 0xb7d7043c in Digikam::ScanLib::findMissingItems ()
from /usr/lib/libdigikam.so.0
#17 0xb7d71023 in Digikam::ScanLib::startScan () from /usr/lib/libdigikam.so.0
#18 0xb7d12603 in Digikam::AlbumManager::setLibraryPath ()
from /usr/lib/libdigikam.so.0
#19 0x0804a3b2 in main ()
Additional information:
The images have a corrupted IFD0 next pointer.
The remaining Exif data is incomplete and also apparently messed up, it has Exif tags in IFD0.