php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57896 Segfault in conjunction with PHP-GTK
Submitted: 2007-11-01 10:34 UTC Modified: 2007-11-17 02:42 UTC
From: php-pecl at stefan-marr dot de Assigned:
Status: Closed Package: runkit (PECL)
PHP Version: 5_2 CVS-2007-11-01 OS: Win32/Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: php-pecl at stefan-marr dot de
New email:
PHP Version: OS:

 

 [2007-11-01 10:34 UTC] php-pecl at stefan-marr dot de
Description:
------------
There is a small bug in runkit_functions.c leading to a segfault if a function doesn't has an op_array.

Think it is the case for all extension functions, which is a problem while using the Gtk::main() loop.

Fix is attached and allows now any extension methods to be on stack. It just checks for NULL pointer on ptr->op_array

Reproduce code:
---------------
? run-tests.php
Index: runkit_functions.c
===================================================================
RCS file: /repository/pecl/runkit/runkit_functions.c,v
retrieving revision 1.9
diff -r1.9 runkit_functions.c
33c33,34
< 		if (ptr->op_array->opcodes == op_array->opcodes) {
---
> 		if (ptr->op_array //think its NULL if its an extension method? Problems here with Gtk::main() on stack  
> 				&& ptr->op_array->opcodes == op_array->opcodes) {



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-11-17 02:42 UTC] sb at sebastian-bergmann dot de
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 08 23:01:27 2024 UTC