mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Fix GH-19962: arrayIndexThenCheck static analysis warning in firebird
Same as ce534c612b.
This commit is contained in:
@@ -172,7 +172,7 @@ static int firebird_stmt_execute(pdo_stmt_t *stmt) /* {{{ */
|
||||
if (result_size > sizeof(result)) {
|
||||
goto error;
|
||||
}
|
||||
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);
|
||||
if (len != 1 && len != 2 && len != 4) {
|
||||
goto error;
|
||||
|
||||
Reference in New Issue
Block a user