Crash when reading PNG image
|Status:||Closed||Start date:||28 Dec 2009|
|Assignee:||Andreas Huggel||% Done:|
Exiv2 crashes when reading this PNG image found by a digikam user:
(pay attention when clicking under KDE, may also crash konqueror which is using exiv2 through a component)
Backtrace of command line tool (sorry, didn't manage to compile with debug info):
#0 0x00007ffff7ac8259 in Exiv2::Internal::PngChunk::parseChunkContent(Exiv2::Image*, unsigned char const*, Exiv2::DataBuf) ()
#1 0x00007ffff7ac8cea in Exiv2::Internal::PngChunk::decodeTXTChunk(Exiv2::Image*, Exiv2::DataBuf const&, Exiv2::Internal::PngChunk::TxtChunkType) () from /usr/lib64/libexiv2.so.5
#2 0x00007ffff7ac6500 in Exiv2::PngImage::readMetadata() () from /usr/lib64/libexiv2.so.5
#3 0x000000000041895c in Action::Print::printList() ()
The image can be opened with GIMP, it contains valid image data.
Related digikam bug is here:
#2 Updated by Andreas Huggel almost 9 years ago
- File bug664.patch added
- Category set to image format
- Status changed from New to Assigned
- Assignee set to Andreas Huggel
- Target version set to 0.19
- % Done changed from 0 to 90
Attached patch fixes the problem. I'll apply the patch later today and it will be included in 0.19.
#3 Updated by Andreas Huggel almost 9 years ago
pay attention when clicking under KDE, may also crash konqueror which is using exiv2 through a component
Interesting, I didn't know that. What component are you referring to?
Indeed, according to the Debian package dependencies, some core KDE packages (kdelibs5, kdebase-runtime and others) depend on the streamanalyzer library (libstreamanalyzer0) which depends on libexiv2-5.