Fly Segfaults?

2005-09-14 Thread Warren Block
The new version of /usr/ports/graphics/fly (2.0) seems to segfault when 
using the copy function to copy in gif digits for a counter.  Earlier 
versions of fly did not have this problem.


Very limited testing seems to show the other functions working.

This is on a FreeBSD 4.11 system.

Example:

% 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)

-Warren Block * Rapid City, South Dakota USA
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Fly Segfaults?

2005-09-14 Thread Mario Hoerich
# 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

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

1298arg[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.

HTH,
Mario

PS: Followup-To/Reply-To  -ports set.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]