Fly Segfaults?

Mario Hoerich spambox at
Wed Sep 14 17:45:25 PDT 2005

# Warren Block:

[ SIGSEGV with fly 2.0 ]
> % cat flytest
> new
> size 26,20
> copy 0,0,-1,-1,-1,-1,/home/wblock/2.gif
> copy 13,0,-1,-1,-1,-1,/home/wblock/6.gif
> % fly -i flytest > test.gif
> Creating new 26 by 20 image
> Segmentation fault (core dumped)

The problem here seems to be the image-type:  the default type
is set to PNG and the program seems to never check the type of
the image loaded with copy.  As a result, the gif file runs through

1271    img_file = gdImageCreateFromPng(img_to_copy);
That returns an unchecked NULL, which is dereferenced just
a couple of lines down:

1298    arg[4] = img_file->sx;

Program received signal SIGSEGV, Segmentation fault.
0x0804cf46 in copy_to_img (infile=0x281a22c0, img=0x8053000, resize=0)
    at fly.c:1298

I'm not really sure how to fix this (and I don't really use
the program), so maybe contact the author about it.


PS: Followup-To/Reply-To  -ports set.

More information about the freebsd-ports mailing list