Sec Bug->Bug #68816 [Opn]: pointer to local outside of scope
| From: | stas@php.net | Date: | Mon, 12 Jan 2015 18:07:57 +0000 |
| Subject: | Sec Bug->Bug #68816 [Opn]: pointer to local outside of scope | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-189909@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
-Type: Security
+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: Y
New Comment:
Doesn't look like a security issue. May be a bug though.
Previous Comments:
------------------------------------------------------------------------
[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