[php-src] PR #17443: Fix GH-17442: Engine UAF with reference assign and dtor
| From: | nielsdos | Date: | Sat, 11 Jan 2025 10:33:15 +0000 |
| Subject: | [php-src] PR #17443: Fix GH-17442: Engine UAF with reference assign and dtor | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-30353@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/17443
Author: nielsdos
Need to protect the object zval in this case by using the
garbage zval trick.
I don't really like doing this, but at least the code in the test isn't completely
pathological and the assign_ref operations aren't super common on hot code I would think; so I
can live a bit with that.