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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 11:01:29 2024 UTC