[php-src] PR #25016: ext/pdo_firebird: Fix GH-25006 getColumnMeta() bounds check

From: Date: Wed, 28 Oct 2026 18:49:56 +0000
Subject: [php-src] PR #25016: ext/pdo_firebird: Fix GH-25006 getColumnMeta() bounds check
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-40035@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/25016 Author: iliaal pdo_firebird_stmt_get_column_meta() indexed out_sqlda.sqlvar[colno] before PDO checked colno against column_count. column_count is the number of XSQLVAR slots allocated with XSQLDA_LENGTH(). A near index read past that allocation and the core then raised SQLSTATE 07009. A far index faulted. The hook now returns an empty array without reading sqlvar when colno is outside that range, and the existing core check raises 07009. describe and get_col are already limited by their callers. param_hook already rejects paramno >= sqld. Returning FAILURE from this hook would return false instead, because the statement error is cleared before the driver runs. Fixes #25006

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