Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 157142 - media-libs/giflib - giftext segfaults on some images
Summary: media-libs/giflib - giftext segfaults on some images
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 154392
  Show dependency tree
 
Reported: 2006-12-04 14:55 UTC by Tom Knight (RETIRED)
Modified: 2007-12-22 16:23 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Image which causes segfault (giftext-segfault.gif,2.06 KB, image/gif)
2006-12-04 14:57 UTC, Tom Knight (RETIRED)
Details
Patch which fixes it (giftext-segfault.patch,828 bytes, patch)
2006-12-04 14:58 UTC, Tom Knight (RETIRED)
Details | Diff
strace before applying patch (giftext-before-patch.strace,5.56 KB, text/plain)
2006-12-04 15:00 UTC, Tom Knight (RETIRED)
Details
strace before applying patch (giftext-before-patch.strace,5.56 KB, text/plain)
2006-12-04 15:20 UTC, Tom Knight (RETIRED)
Details
strace after applying patch (giftext-after-patch.strace,6.80 KB, text/plain)
2006-12-04 15:25 UTC, Tom Knight (RETIRED)
Details
giflib-4.1.4-r2.ebuild (giflib-4.1.4-r2.ebuild,1.25 KB, text/plain)
2007-01-25 14:35 UTC, Michael Cargile
Details
updated patch (giflib_giftext_fix.patch,517 bytes, patch)
2007-01-25 14:37 UTC, Michael Cargile
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Knight (RETIRED) gentoo-dev 2006-12-04 14:55:40 UTC
I've got an image which causes giftext from giflib 4.1.4 to segfault along with a patch which fixes the issue. The patch comes from the FuzzyOCR guys and is one of the things which is holding up bug  154392, although I'll probably add the FuzzyOCR ebuild with a warning that some images may cause a segfault until this bug is fixed.
Comment 1 Tom Knight (RETIRED) gentoo-dev 2006-12-04 14:57:17 UTC
Created attachment 103361 [details]
Image which causes segfault
Comment 2 Tom Knight (RETIRED) gentoo-dev 2006-12-04 14:58:35 UTC
Created attachment 103362 [details, diff]
Patch which fixes it
Comment 3 Tom Knight (RETIRED) gentoo-dev 2006-12-04 15:00:59 UTC
Created attachment 103364 [details]
strace before applying patch
Comment 4 Tom Knight (RETIRED) gentoo-dev 2006-12-04 15:20:36 UTC
Created attachment 103365 [details]
strace before applying patch
Comment 5 Tom Knight (RETIRED) gentoo-dev 2006-12-04 15:25:40 UTC
Created attachment 103366 [details]
strace after applying patch

/me blames bugzie for the dupe
Comment 6 SpanKY gentoo-dev 2006-12-04 20:19:18 UTC
you should really take this to the upstream giflib mailing list ;)
Comment 7 Tom Knight (RETIRED) gentoo-dev 2006-12-05 02:39:57 UTC
(In reply to comment #6)
> you should really take this to the upstream giflib mailing list ;)
> 

I'll do that but in the meantime we could add the patch in the ebuild.
Comment 8 Tom Knight (RETIRED) gentoo-dev 2006-12-05 06:54:31 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > you should really take this to the upstream giflib mailing list ;)
> > 
> 
> I'll do that but in the meantime we could add the patch in the ebuild.
> 
Looks like someone's already reported it:

http://sourceforge.net/tracker/index.php?func=detail&aid=1544184&group_id=102202&atid=631304
Comment 9 Michael Cargile 2007-01-25 14:35:52 UTC
Created attachment 108125 [details]
giflib-4.1.4-r2.ebuild

Here is an ebuild that applies the patch.
Comment 10 Michael Cargile 2007-01-25 14:37:11 UTC
Created attachment 108127 [details, diff]
updated patch

Here is an updated patch to go with my ebuild. The directories were off for use with epatch
Comment 11 Markus Meier gentoo-dev 2007-12-22 16:23:15 UTC
should be fixed in media-libs/giflib-4.1.6, which will go stable soon.