[php-src] PR #22672: Fix GH-22667: pdo_odbc heap over-read on oversized column value

From: Date: Fri, 10 Jul 2026 12:47:23 +0000
Subject: [php-src] PR #22672: Fix GH-22667: pdo_odbc heap over-read on oversized column value
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-36950@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/22672 Author: iliaal ext/pdo_odbc builds the result string from the driver-reported fetched_len, which on truncation exceeds the bound colsize+1 buffer (SQL_SUCCESS_WITH_INFO), over-reading heap into the returned value. Clamps to the bound capacity for short-bound columns only, so long columns are unaffected. Reproduces with the SQLite3 ODBC driver; the test skips without it. Sibling of GH-22668. Fixes #22667

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