Bug #16841 Updated: imagepng() segfaults
| From: | sniper@php.net | Date: | Fri, 26 Apr 2002 02:15:41 +0000 |
| Subject: | Bug #16841 Updated: imagepng() segfaults | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-6045@lists.php.net to get a copy of this message | ||
ID: 16841
Updated by: sniper@php.net
Reported By: daniel@pressure.net.nz
-Status: Open
+Status: Feedback
-Bug Type: Reproducible crash
+Bug Type: GD related
Operating System: Linux
PHP Version: 4.2.0
New Comment:
To properly diagnose this bug, we need a backtrace to see what is
happening behind the scenes. To find out how to generate a backtrace,
please read http://bugs.php.net/bugs-generating-backtrace.php
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open".
Previous Comments:
------------------------------------------------------------------------
[2002-04-25 21:23:20] daniel@pressure.net.nz
<?php
header ("Content-type: image/png");
$im = @imagecreate (50, 100)
or die ("Cannot Initialize new GD image stream");
$background_color = imagecolorallocate ($im, 255, 255, 255);
$text_color = imagecolorallocate ($im, 233, 14, 91);
imagestring ($im, 1, 5, 5, "A Simple Text String", $text_color);
imagepng ($im);
?>
generates a reproducable segfault in DSO, CGI and CLI versions. GD is
version 1.8.4, although segfaults also occurred with 2.0.1. Libpng is
1.2.1, zlib is 1.1.4.
Compiling PHP 4.1.2 identically does not produce the segfault.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16841&edit=1