php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33865 local_retval_ptr should be initialized to NULL
Submitted: 2005-07-26 13:46 UTC Modified: 2005-07-26 20:33 UTC
From: mike@php.net Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 5CVS-2005-07-26 (dev) OS: Windows 2000
Private report: No CVE-ID: None
 [2005-07-26 13:46 UTC] mike@php.net
Description:
------------
In zend_execute_API.c zend_call_user_function() the local_retval_ptr variable should be initialized to NULL; otherwise it could lead to a memory read access failure.


Expected result:
----------------
Index: zend_execute_API.c
===================================================================
RCS file: /repository/ZendEngine2/zend_execute_API.c,v
retrieving revision 1.328
diff -u -r1.328 zend_execute_API.c
--- zend_execute_API.c	21 Jul 2005 16:52:32 -0000	1.328
+++ zend_execute_API.c	26 Jul 2005 11:42:27 -0000
@@ -531,7 +531,7 @@
 	zval ***params_array;
 	zend_uint i;
 	int ex_retval;
-	zval *local_retval_ptr;
+	zval *local_retval_ptr = NULL;
 
 	if (param_count) {
 		params_array = (zval ***) emalloc(sizeof(zval **)*param_count);



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-07-26 20:33 UTC] sniper@php.net
Fixed. Please don't report these kind of things as bugs, 
send these to internals@ directly.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 03:01:29 2024 UTC