[php-src] PR #25806: ext/pdo: Fix use-after-free when PDO::ATTR_STATEMENT_CLASS replaces the constructor arguments
| From: | Roman3349 | Date: | Thu, 26 Nov 2026 21:27:12 +0000 |
| Subject: | [php-src] PR #25806: ext/pdo: Fix use-after-free when PDO::ATTR_STATEMENT_CLASS replaces the constructor arguments | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-41080@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/25806
Author: Roman3349
pdo_dbh_attribute_set() released the old constructor arguments before storing the new ones, so a
destructor of an old argument that read the attribute saw the array being destroyed. Store the new
arguments first.