Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 540682

Summary: media-gfx/exiv2-0.24-r1 - arithmetic exception errors
Product: Gentoo Linux Reporter: Paolo Pedroni <paolo.pedroni>
Component: Current packagesAssignee: Gentoo Graphics Project <graphics+disabled>
Status: RESOLVED FIXED    
Severity: normal CC: kde
Priority: Normal Keywords: PATCH, UPSTREAM
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 552766    
Bug Blocks:    
Attachments: exiv2-0.24-fix_arithmetic_exception.patch

Description Paolo Pedroni 2015-02-19 16:05:21 UTC
Created attachment 396968 [details, diff]
exiv2-0.24-fix_arithmetic_exception.patch

There are two "division by zero" or "arithmetic exception" errors in media-gfx/exiv2 that can result in segfault when parsing metadata in .mp4 files. This causes e.g. digikam to fail when importing collections containing such files.

Upstream bugs are:
http://dev.exiv2.org/issues/1017
http://dev.exiv2.org/issues/999

Upstream revisions are:
http://dev.exiv2.org/projects/exiv2/repository/revisions/3537/diff/trunk/src/quicktimevideo.cpp
http://dev.exiv2.org/projects/exiv2/repository/revisions/3390/diff/trunk/src/quicktimevideo.cpp

The attached patch (derived from those revisions in upstream trunk) fixes those cases and should be applied to current stable ebuild until new version is out.
Comment 1 manu 2015-03-14 14:55:35 UTC
I hit this bug too, but the patch didn't work for me: I'm still seeing a "Floating point exception" every time I run edi4.4.0-r1.

In order to apply the patch I just put it in/etc/portage/patches, and recompiled media-gfx/exiv2 (making sure it is actually applied...) and libkexiv2 (this is probably not needed, though)...am I missing something?
Comment 2 manu 2015-03-14 14:56:37 UTC
(In reply to manu from comment #1)
> I hit this bug too, but the patch didn't work for me: I'm still seeing a
> "Floating point exception" every time I run digikam 4.4.0-r1.
> 
> In order to apply the patch I just put it in/etc/portage/patches, and
> recompiled media-gfx/exiv2 (making sure it is actually applied...) and
> libkexiv2 (this is probably not needed, though)...am I missing something?
Comment 3 Paolo Pedroni 2015-03-16 09:21:01 UTC
(In reply to manu from comment #2)
> (In reply to manu from comment #1)
> > I hit this bug too, but the patch didn't work for me: I'm still seeing a
> > "Floating point exception" every time I run digikam 4.4.0-r1.
> > 
> > In order to apply the patch I just put it in/etc/portage/patches, and
> > recompiled media-gfx/exiv2 (making sure it is actually applied...) and
> > libkexiv2 (this is probably not needed, though)...am I missing something?

Have you tried rebuildg digikam as well?
Comment 4 manu 2015-03-25 22:48:16 UTC
(In reply to Paolo Pedroni from comment #3)
> (In reply to manu from comment #2)
> > (In reply to manu from comment #1)
> > > I hit this bug too, but the patch didn't work for me: I'm still seeing a
> > > "Floating point exception" every time I run digikam 4.4.0-r1.
> > > 
> > > In order to apply the patch I just put it in/etc/portage/patches, and
> > > recompiled media-gfx/exiv2 (making sure it is actually applied...) and
> > > libkexiv2 (this is probably not needed, though)...am I missing something?
> 
> Have you tried rebuildg digikam as well?

Sorry for the delay...I didn't get any notification in my e-mail. I just tried rebuilding digikam and it doesn't make any difference: still crashing when scanning some videos.
Comment 5 Andreas Sturmlechner gentoo-dev 2015-10-04 16:34:56 UTC
Should be fixed by exiv2-0.25, now in tree.