php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56496 segfault when calling imagick_faileddescription()
Submitted: 2005-08-17 04:50 UTC Modified: 2007-04-13 11:44 UTC
From: jaenichen at globalpark dot de Assigned:
Status: Closed Package: imagick (PECL)
PHP Version: 5_1 CVS-2005-08-17 (dev) OS: Suse linux 9.0
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jaenichen at globalpark dot de
New email:
PHP Version: OS:

 

 [2005-08-17 04:50 UTC] jaenichen at globalpark dot de
Description:
------------
System configuration: 
Freetype-2.1.4, ImageMagick-6.2.3, imagick-0.9.11, php-5.1.0b3.

PHP configuration:
./configure --with-apxs=/opt/pdp/apache/bin/apxs --prefix=/opt/pdp/php --with-mysql=/opt/pdp/mysql/ --with-config-file-path=/opt/pdp/ --with-iconv=/opt/pdp/iconv/ --with-imagick=/opt/pdp/ImageMagick/ --with-zlib --with-gd --with-freetype-dir=/usr --enable-gd-native-ttf --enable-gd-imgstrttf --with-jpeg-dir=/usr --with-png-dir=/usr --with-dom --with-dom-xslt --with-dom-exslt --enable-sysvsem --enable-sysvshm --disable-debug --enable-sockets --with-mysqli=/opt/pdp/mysql/bin/mysql_config --enable-mbstring --enable-soap --with-openssl=/usr/ --with-bz2

It seems that "handle->image" isn't set when function imagick_faileddescription() is called on an error.
By accessing the field "handle->image->exception.description" the segfault is throwed.

Reproduce code:
---------------
Reproduce Code:
http://www.3uu.de/tst.php.gz

Patch:
http://www.3uu.de/imagick.diff

Expected result:
----------------
A segfault.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-04-13 11:44 UTC] scottmac@php.net
Thank you for your bug report. This issue has been fixed
in the latest released version of the package, which you can download at
http://pecl.php.net/get/imagick


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun May 11 22:01:27 2025 UTC