[php-src] PR #17947: Fix GH-17941: Stack-use-after-return with lazy objects and hooks
| From: | nielsdos | Date: | Thu, 27 Feb 2025 18:03:55 +0000 |
| Subject: | [php-src] PR #17947: Fix GH-17941: Stack-use-after-return with lazy objects and hooks | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-30937@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/17947
Author: nielsdos
zend_std_write_property() can return the variable pointer, but the code was using a local variable,
and so a pointer to a local variable could be returned. Fix this by using the value pointer instead.
This can be more efficient on master by using the safe_assign helper.