mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
protect against underflow - refs http://pecl.php.net/bugs/bug.php?id=5193
This commit is contained in:
parent
bd307bc0bd
commit
23a74267d9
@ -476,7 +476,7 @@ static int pdo_mysql_stmt_col_meta(pdo_stmt_t *stmt, long colno, zval *return_va
|
||||
if (!S->result) {
|
||||
return FAILURE;
|
||||
}
|
||||
if (colno >= stmt->column_count) {
|
||||
if (colno >= stmt->column_count || colno < 0) {
|
||||
/* error invalid column */
|
||||
return FAILURE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user