[php-src] PR #25185: ext/pdo_pgsql: pgsql_stmt_execute() out-of-bounds read on a wider re-…
| From: | devnexen | Date: | Wed, 04 Nov 2026 10:36:16 +0000 |
| Subject: | [php-src] PR #25185: ext/pdo_pgsql: pgsql_stmt_execute() out-of-bounds read on a wider re-… | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-40287@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/25185
Author: devnexen
…executed result.
Fix #25184
A re-executed statement returning more columns kept S->cols and stmt->columns sized for the
first result, so fetches and getColumnMeta() read past both arrays. Both were now resized when the
column count changed, and PDO described the columns again.
Co-authored-by: Yun Dou <dixyes@gmail.com>