[php-src] Issue #19962: php-8.4.13/ext/pdo_firebird/firebird_statement.c:246:19: style: Array index 'i' is used before limits check.
[arrayIndexThenCheck]
| From: | dcb314 | Date: | Thu, 25 Sep 2025 12:11:10 +0000 |
| Subject: | [php-src] Issue #19962: php-8.4.13/ext/pdo_firebird/firebird_statement.c:246:19: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] |
||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-250918@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/19962
Author: dcb314
### Description
Static analyser cppcheck emitted the title text.
Source code is
while (result[i] != isc_info_end && i < result_size) {
Suggest new code
while (i < result_size && result[i] != isc_info_end) {
### PHP Version
```plain
8.4.13
```
### Operating System
fedora 42