|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #80240 Use after free multi yield from
Submitted: 2020-10-15 13:09 UTC Modified: 2020-10-22 08:43 UTC
From: Assigned: nikic (profile)
Status: Closed Package: Scripting Engine problem
PHP Version: 8.0.0rc1 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2020-10-15 13:09 UTC]
@bwoebi came up with this reduction of oss-fuzz #25697 a while ago, report a bug to make sure it doesn't get lost in a chat log...

Test script:

function gen() {
    yield 0;
    yield from gen();

function bar($gen) {
    yield from $gen;

$gen = gen();
$a = bar($gen);
$b = bar($gen);


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2020-10-16 10:15 UTC]
-Assigned To: +Assigned To: nikic
 [2020-10-22 08:43 UTC]
-Status: Assigned +Status: Closed
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Jun 15 07:01:23 2021 UTC