php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58888 GMagickDraw::setStrokeColor crashes with an invalid object parameter
Submitted: 2009-10-11 15:36 UTC Modified: 2009-12-05 12:37 UTC
From: felipe@php.net Assigned:
Status: Closed Package: gmagick (PECL)
PHP Version: 5_3 CVS-2009-10-11 (dev) OS:
Private report: No CVE-ID: None
 [2009-10-11 15:36 UTC] felipe@php.net
Description:
------------
See below.

Reproduce code:
---------------
Starting program: /usr/local/bin/php -dextension=gmagick.so -r '$x = new gmagickdraw; $x->setstrokecolor(new stdclass);'
[Thread debugging using libthread_db enabled]
[New Thread 0xb5c2e6b0 (LWP 20394)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb5c2e6b0 (LWP 20394)]
0xb5a5bb80 in PixelGetQuantumColor () from /usr/lib/libGraphicsMagickWand.so.0
(gdb) bt
#0  0xb5a5bb80 in PixelGetQuantumColor () from /usr/lib/libGraphicsMagickWand.so.0
#1  0xb5a49d19 in MagickDrawSetStrokeColor () from /usr/lib/libGraphicsMagickWand.so.0
#2  0xb5a8069f in zim_gmagickdraw_setstrokecolor (ht=1, return_value=0x8a8bfc4, return_value_ptr=0x0, this_ptr=0x8a8b0d0, 
    return_value_used=0, tsrm_ls=0x8923050) at /home/felipe/dev/pecl/gmagick/gmagickdraw_methods.c:40
#3  0x0846721d in zend_do_fcall_common_helper_SPEC (execute_data=0x8ab9e7c, tsrm_ls=0x8923050)
    at /home/felipe/dev/php5/Zend/zend_vm_execute.h:313
#4  0x084683e4 in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER (execute_data=0x8ab9e7c, tsrm_ls=0x8923050)
    at /home/felipe/dev/php5/Zend/zend_vm_execute.h:418
#5  0x08465f02 in execute (op_array=0x8a8b714, tsrm_ls=0x8923050) at /home/felipe/dev/php5/Zend/zend_vm_execute.h:104
#6  0x08425429 in zend_eval_stringl (str=0xbf90c816 "$x = new gmagickdraw; $x->setstrokecolor(new stdclass);", str_len=55, retval_ptr=0x0, 
    string_name=0x87d8690 "Command line code", tsrm_ls=0x8923050) at /home/felipe/dev/php5/Zend/zend_execute_API.c:1167
#7  0x084256d8 in zend_eval_stringl_ex (str=0xbf90c816 "$x = new gmagickdraw; $x->setstrokecolor(new stdclass);", str_len=55, retval_ptr=0x0, 
    string_name=0x87d8690 "Command line code", handle_exceptions=1, tsrm_ls=0x8923050) at /home/felipe/dev/php5/Zend/zend_execute_API.c:1209
#8  0x0842578c in zend_eval_string_ex (str=0xbf90c816 "$x = new gmagickdraw; $x->setstrokecolor(new stdclass);", retval_ptr=0x0, 
    string_name=0x87d8690 "Command line code", handle_exceptions=1, tsrm_ls=0x8923050) at /home/felipe/dev/php5/Zend/zend_execute_API.c:1220
#9  0x08517b07 in main (argc=4, argv=0xbf90a7b4) at /home/felipe/dev/php5/sapi/cli/php_cli.c:1229



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-10-11 19:10 UTC] mkoppanen@php.net
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 [2009-12-05 10:37 UTC] mkoppanen@php.net
The issue still persists
 [2009-12-05 12:34 UTC] felipe@php.net
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 [2009-12-05 12:37 UTC] felipe@php.net
It was my mistake, it's already fixed, thanks.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Oct 09 20:01:27 2024 UTC