[php-src] PR #22670: Fix GH-22668: odbc heap over-read on oversized column value
| From: | iliaal | Date: | Fri, 10 Jul 2026 12:37:46 +0000 |
| Subject: | [php-src] PR #22670: Fix GH-22668: odbc heap over-read on oversized column value | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-36948@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/22670
Author: iliaal
ext/odbc builds the result string from the driver-reported vallen, which on truncation exceeds the
bound displaysize+1 buffer (SQL_SUCCESS_WITH_INFO), over-reading heap into the returned value.
Clamps the length to the bound capacity at the three fetch sites. Reproduces with the SQLite3 ODBC
driver; the test skips without it.
Fixes #22668