Re: ImageWBMP() segfaults

From: Date: Fri, 20 Oct 2000 03:40:04 +0000
Subject: Re: ImageWBMP() segfaults
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-35610@lists.php.net to get a copy of this message
On Tue, 17 Oct 2000, Mathieu Kooiman wrote: >Anyone had troubles with ImageWBMP()? >I did a backtrace and it seems that it segfaults in the GD part of it, >but I'm just wondering... I got the same results..crashes. With gd 1.8.3. The patch below seems to fix this problem as it looks like the 'real' bug is in the GD library itself. Or does somebody got any better way to fix this crash? --Jani Index: gd.c =================================================================== RCS file: /repository/php4/ext/gd/gd.c,v retrieving revision 1.89 diff -u -r1.89 gd.c --- gd.c 2000/10/16 13:50:30 1.89 +++ gd.c 2000/10/20 03:34:41 @@ -745,11 +745,7 @@ Output WBMP image to browser or file */ PHP_FUNCTION(imagewbmp) { -#ifdef HAVE_GD_WBMP - _php_image_output(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_WBM, "WBMP", gdImageWBMP); -#else _php_image_output(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_WBM, "WBMP", _php_image_output_wbmp); -#endif } /* }}} */

« previous php.dev (#35610) next »