1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Merge branch 'PHP-8.3' into PHP-8.4

* PHP-8.3:
  Fix GH-19961: Static analysis arrayIndexThenCheck warning in firebird (#20790)
This commit is contained in:
Niels Dossche
2025-12-28 13:04:27 +01:00

View File

@@ -758,7 +758,7 @@ static zend_long firebird_handle_doer(pdo_dbh_t *dbh, const zend_string *sql) /*
ret = -1; ret = -1;
goto free_statement; goto free_statement;
} }
while (result[i] != isc_info_end && i < result_size) { while (i < result_size && result[i] != isc_info_end) {
short len = (short)isc_vax_integer(&result[i+1],2); short len = (short)isc_vax_integer(&result[i+1],2);
/* bail out on bad len */ /* bail out on bad len */
if (len != 1 && len != 2 && len != 4) { if (len != 1 && len != 2 && len != 4) {