php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57839 resampleImage crashes system completely
Submitted: 2007-09-13 12:18 UTC Modified: 2007-09-13 14:01 UTC
From: d dot s dot baars at orange dot nl Assigned:
Status: Not a bug Package: imagick (PECL)
PHP Version: 5.2.1 OS: FreeBSD 4.11
Private report: No CVE-ID: None
 [2007-09-13 12:18 UTC] d dot s dot baars at orange dot nl
Description:
------------
Version: ImageMagick 6.3.5 09/12/07 Q16 
OS: FreeBSD 4.11-RELEASE
Apache 1.3.37
PHP Version 5.2.4

./configure --enable-versioning --enable-memory-limit --
with-layout=GNU --with-zlib-dir=/usr --with-regex=php --
with-pear --with-bz2=/usr --enable-calendar --enable-ctype -
-with-curl=/usr/local --with-dom=/usr/local --with-dom-
xslt=/usr/local --with-dom-exslt=/usr/local --enable-exif --
enable-ftp --with-gd --enable-gd-native-ttf --with-freetype-
dir=/usr/local --with-t1lib=/usr/local --with-jpeg-
dir=/usr/local --with-png-dir=/usr/local --with-xpm-
dir=/usr/X11R6 --with-gettext=/usr/local --enable-mbstring -
-with-mcal=/usr/local --with-mcrypt=/usr/local --with-
mhash=/usr/local --with-mime-
magic=/usr/share/misc/magic.mime --with-mysql=/usr/local --
with-openssl-dir=/usr --enable-overload --with-pcre-
regex=yes --enable-posix --with-pgsql=/usr/local --enable-
session --enable-sockets --enable-tokenizer --with-expat-
dir=/usr/local --enable-xml --with-zip=/usr/local --with-
zlib=yes --with-apxs=/usr/local/sbin/apxs --with-
imap=/usr/local --with-imap-ssl=/usr/local --with-
snmp=/usr/local --enable-ucd-snmp-hack --x-
libraries=/usr/X11R6/lib --x-includes=/usr/X11R6/include --
prefix=/usr/local --enable-simplexml --enable-libxml --with-
libxml-dir=/usr/local --enable-spl --with-
mysqli=/usr/local/bin/mysql_config --with-ldap --with-xsl --
enable-bcmath






Reproduce code:
---------------
<?php
$image->readImage("image.jpg");
$image->resampleImage(450, 337, imagick::FILTER_LANCZOS, 0);
echo $image;
?>

Expected result:
----------------
(Code of) resized jpeg image

Actual result:
--------------
It freezes my server completely, reset is only solution.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-09-13 14:01 UTC] mkoppanen@php.net
Sorry, but your problem does not imply a bug in PECL itself.  For a
list of more appropriate places to ask for help using PECL, please
visit http://pecl.php.net/support/ as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PECL.

I can not reproduce this issue on any of the boxes I tried. Are you sure you're not running out of memory?
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Fri Aug 07 13:01:24 2020 UTC