Bug #12894 Updated: GD crashes PHP by using GD Format

From: Date: Tue, 02 Oct 2001 23:05:23 +0000
Subject: Bug #12894 Updated: GD crashes PHP by using GD Format
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-67157@lists.php.net to get a copy of this message
ID: 12894
Updated by: sniper
Reported By: alberty@neptunlabs.de
Old Status: Feedback
Status: Closed
Bug Type: GD related
Operating System: i686-pc-linux-gnu
PHP Version: 4.0.7-dev (latest CVS)
New Comment:

No feedback and not enought information. If problem still
exists with latest CVS / GD reopen with required information.


Previous Comments:
------------------------------------------------------------------------

[2001-08-30 22:36:22] sniper@php.net

I can not reproduce this. Does this happen with that
example script included in this report?
Does this crash happen with specific images? Where could
I get those images? What was the configure line like
for configuring PHP ?

--Jani


------------------------------------------------------------------------

[2001-08-27 08:50:44] alberty@neptunlabs.de

Hi Jani,

here is the backtrace of the second script:

Program received signal SIGSEGV, Segmentation fault.
0x40411786 in gd_module_entry () from /usr/local/apache/current/libexec/libphp4.so
(gdb) bt
#0  0x40411786 in gd_module_entry () from /usr/local/apache/current/libexec/libphp4.so
(gdb) 

the script fails only if you call ImagePNG after the ImageCreateFromGD.

Also ImageGD2 creates corrupted files, but this is another bug ...


Regards,

-- 
Steve

------------------------------------------------------------------------

[2001-08-22 13:04:34] sniper@php.net

I can't get your scripts to crash.
Could you please generate a GDB backtrace of the crash?

--Jani


------------------------------------------------------------------------

[2001-08-22 12:13:54] alberty@neptunlabs.de

Sorry, my submitted PHP Version was wrong. I mean 4.0.7-dev from the latest CVS.

The script crash under cvs version.

Regards,

Steve

------------------------------------------------------------------------

[2001-08-22 10:57:00] sniper@php.net

I doubt that you could crash PHP by using functions
that don't exist..

Both imageGD2 and ImageCreateFromGD where added
AFTER PHP 4.0.6 was released. So they are only
available in the CVS.

And with the latest CVS version, both of your
scripts work just fine.

--Jani


------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/?id=12894


Edit this bug report at http://bugs.php.net/?id=12894&edit=1



Thread (9 messages)

« previous php.dev (#67157) next »