Date: Thu, 15 Sep 2005 02:45:20 +0200 From: Mario Hoerich <spambox@MHoerich.de> To: Warren Block <wblock@wonkity.com> Cc: ports@freebsd.org, questions@freebsd.org Subject: Re: Fly Segfaults? Message-ID: <20050915004519.GA95966@Pandora.MHoerich.de> In-Reply-To: <20050914075631.V45447@wonkity.com> References: <20050914075631.V45447@wonkity.com>
next in thread | previous in thread | raw e-mail | index | archive | help
# 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. HTH, Mario PS: Followup-To/Reply-To -ports set.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050915004519.GA95966>