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.
Created attachment 103361 [details] Image which causes segfault
Created attachment 103362 [details, diff] Patch which fixes it
Created attachment 103364 [details] strace before applying patch
Created attachment 103365 [details] strace before applying patch
Created attachment 103366 [details] strace after applying patch /me blames bugzie for the dupe
you should really take this to the upstream giflib mailing list ;)
(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.
(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
Created attachment 108125 [details] giflib-4.1.4-r2.ebuild Here is an ebuild that applies the patch.
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
should be fixed in media-libs/giflib-4.1.6, which will go stable soon.