[php-src] PR #16004: Fix use-after-free during lazy object initialization

From: Date: Mon, 23 Sep 2024 11:40:31 +0000
Subject: [php-src] PR #16004: Fix use-after-free during lazy object initialization
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-28729@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/16004 Author: arnaud-lb Fixes two issues discovered by https://github.com/php/php-src/issues/15999: - Object may be released during initialization. Increase the object's refcount during initialization to prevent that. If the refcount is zero after restoring it, an exception is thrown (similarly to 47ed1904ef75). - The assigned value may be changed during initialization, so may have to de-ref it again before forwarding the zend_std_write_property() call to the initialized object

« previous php.git-pulls (#28729) next »