Bug #68816 [Opn->Csd]: pointer to local outside of scope
| From: | stas@php.net | Date: | Thu, 15 Jan 2015 00:15:17 +0000 |
| Subject: | Bug #68816 [Opn->Csd]: pointer to local outside of scope | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-189962@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=68816&edit=1
ID: 68816
Updated by: stas@php.net
Reported by: bugreports at internot dot info
Summary: pointer to local outside of scope
-Status: Open
+Status: Closed
Type: Bug
Package: SPL related
Operating System: Linux Ubuntu 14.04
PHP Version: master-Git-2015-01-12 (Git)
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of stas
Revision: http://git.php.net/?p=php-src.git;a=commit;h=8d26c53f7cd1aa51ac39f26d59bfbf673b260350
Log: Fix bug #68816 - pointer to local outside of scope
Previous Comments:
------------------------------------------------------------------------
[2015-01-12 18:07:57] stas@php.net
Doesn't look like a security issue. May be a bug though.
------------------------------------------------------------------------
[2015-01-12 17:20:12] bugreports at internot dot info
Description:
------------
Hi,
In /ext/spl/spl_iterators.c:
530 if (!iterator || !instanceof_function(Z_OBJCE_P(iterator), spl_ce_RecursiveIterator)) {
'iterator' is outside of scope, since it is an alias for caching_it, which is
out-of-scope:
506 iterator = &caching_it;
Thanks,
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=68816&edit=1