[pkg-GD-devel] Bug#492116: php5-gd: imagefill() segfaults

Christoph Muehlmann c.muehlmann at symboil.de
Wed Jul 23 19:58:02 UTC 2008


Package: libgd2-xpm
Version: 2.0.33-5.2etch1
Severity: important

on this system (debian etch with security-updates) any call of imagefill() whithin php5-scripts 
stops the script. This makes it unpossible to create PNG-Files with transparent backgrounds in 
this way. The segfaulting Code:

<?php
	$thumbnail = ImageCreateTrueColor(GALLERY_THUMB_SIZE, GALLERY_THUMB_SIZE);
	imagesavealpha($thumbnail, TRUE);
	$bgcolor = imagecolortransparent($thumbnail);
	imagefill($thumbnail, 0, 0, $bgcolor);
	imagecopyresampled($thumbnail, $image, $tn_pos_x, $tn_pos_y, 0, 0, $newwidth, $newheight, 
		$width, $height);
	$ok = imagepng($thumbnail, $thumbfile);
?>

this Problem seems to be fixed in newer versions of libgd-xpm: the version in lenny doesn't 
segfault on my local Workstation (where lenny runs on). 

Thanks,

Christoph Muehlmann

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-6-amd64
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

Versions of packages libgd2-xpm depends on:
ii  libc6                  2.3.6.ds1-13etch5 GNU C Library: Shared libraries
ii  libfontconfig1         2.4.2-1.2         generic font configuration library
ii  libfreetype6           2.2.1-5+etch2     FreeType 2 font engine, shared lib
ii  libjpeg62              6b-13             The Independent JPEG Group's JPEG 
ii  libpng12-0             1.2.15~beta5-1    PNG library - runtime
ii  libx11-6               2:1.0.3-7         X11 client-side library
ii  libxpm4                1:3.5.5-2         X11 pixmap library
ii  zlib1g                 1:1.2.3-13        compression library - runtime

libgd2-xpm recommends no packages.

-- no debconf information





More information about the pkg-GD-devel mailing list