: Bug #48206 :: Segfault in RecursiveIteratorIterator::current()
| Bug #48206 | Segfault in RecursiveIteratorIterator::current() | ||||
|---|---|---|---|---|---|
| Submitted: | 2009-05-09 14:01 UTC | Modified: | 2009-05-09 19:48 UTC | ||
| From: | matt at raines dot me dot uk | Assigned: | |||
| Status: | Closed | Package: | SPL related | ||
| PHP Version: | 5.*, 6CVS (2009-05-09) | OS: | * | ||
| Private report: | No | CVE-ID: | None | ||
[2009-05-09 14:01 UTC] matt at raines dot me dot uk
Description: ------------ If you wrap a RecursiveArrayIterator in a RecursiveIteratorIterator and iterate past the end of the array, PHP crashes. Reproduce code: --------------- <?php $i = new RecursiveIteratorIterator(new RecursiveArrayIterator(array())); $i->next(); var_dump($i->current()); ?> Expected result: ---------------- NULL Actual result: -------------- Segmentation fault (core dumped)
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2009-05-09 19:48 UTC] scottmac@php.net