This commit is contained in:
George Schlossnagle 2005-09-01 14:31:34 +00:00
parent bd307bc0bd
commit 23a74267d9

View File

@ -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;
}