#19941 [Opn->Csd]: ImageTrueColorToPalette crashes with bundled libgd with last parameter set to 0
| From: | rasmus@php.net | Date: | Wed, 16 Oct 2002 22:35:12 +0000 |
| Subject: | #19941 [Opn->Csd]: ImageTrueColorToPalette crashes with bundled libgd with last parameter set to 0 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-22614@lists.php.net to get a copy of this message | ||
ID: 19941
Updated by: rasmus@php.net
Reported By: mfischer@php.net
-Status: Open
+Status: Closed
Bug Type: GD related
Operating System: Linux
PHP Version: 4CVS-2002-10-16
New Comment:
Fixed in CVS
Previous Comments:
------------------------------------------------------------------------
[2002-10-16 17:29:41] mfischer@php.net
Calling ImageTrueColorToPalette() with the last parameter set to 0
causes a segfault:
Program received signal SIGSEGV, Segmentation fault.
0x4013b84b in free () from /lib/libc.so.6
(gdb) bt
#0 0x4013b84b in free () from /lib/libc.so.6
#1 0x4013b6d3 in free () from /lib/libc.so.6
#2 0x080824da in gdFree (ptr=0x82897c0) at
/home/mfischer/isrc/cvs/php4/ext/gd/libgd/gdhelpers.c:95
#3 0x08083515 in select_colors (im=0x8290b18, cquantize=0x82930c0,
desired_colors=0) at
/home/mfischer/isrc/cvs/php4/ext/gd/libgd/gd_topal.c:701
#4 0x08084804 in gdImageTrueColorToPalette (im=0x8290b18, dither=0,
colorsWanted=0) at
/home/mfischer/isrc/cvs/php4/ext/gd/libgd/gd_topal.c:1562
#5 0x0806b073 in zif_imagetruecolortopalette (ht=3,
return_value=0x829321c, this_ptr=0x0, return_value_used=0) at
/home/mfischer/isrc/cvs/php4/ext/gd/gd.c:648
#6 0x081af8e3 in execute (op_array=0x828ea14) at
/home/mfischer/isrc/cvs/php4/Zend/zend_execute.c:1597
#7 0x0819ee49 in zend_execute_scripts (type=8, retval=0x0,
file_count=3) at /home/mfischer/isrc/cvs/php4/Zend/zend.c:839
#8 0x0816d681 in php_execute_script (primary_file=0xbffffa40) at
/home/mfischer/isrc/cvs/php4/main/main.c:1542
#9 0x081b5420 in main (argc=2, argv=0xbffffac4) at
/home/mfischer/isrc/cvs/php4/sapi/cli/php_cli.c:695
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19941&edit=1