From:             [EMAIL PROTECTED]
Operating system: Linux
PHP version:      4.2.0
PHP Bug Type:     Reproducible crash
Bug description:  imagepng() segfaults

<?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 bug report at http://bugs.php.net/?id=16841&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=16841&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=16841&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=16841&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=16841&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16841&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=16841&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=16841&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=16841&r=submittedtwice

Reply via email to