diff options
author | Matteo Beccati <mbeccati@php.net> | 2014-11-01 19:11:43 +0100 |
---|---|---|
committer | Ferenc Kovacs <tyrael@php.net> | 2014-11-12 14:30:05 +0100 |
commit | 25848cec92f6bc3886f0530085c7ab716813cc29 (patch) | |
tree | 08365b55fdad2c6a6bdd1aa5b43c4f176ef64b9e /ext/pdo_pgsql/pgsql_statement.c | |
parent | c301479e9e99610ec0765b5254cb830f1bcd9810 (diff) | |
download | php-git-25848cec92f6bc3886f0530085c7ab716813cc29.tar.gz |
Fixed bug #66584 Segmentation fault on statement deallocation
Diffstat (limited to 'ext/pdo_pgsql/pgsql_statement.c')
-rw-r--r-- | ext/pdo_pgsql/pgsql_statement.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pdo_pgsql/pgsql_statement.c b/ext/pdo_pgsql/pgsql_statement.c index 35e69a3c02..7da130d52b 100644 --- a/ext/pdo_pgsql/pgsql_statement.c +++ b/ext/pdo_pgsql/pgsql_statement.c @@ -297,7 +297,7 @@ static int pgsql_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data * sizeof(Oid)); } if (param->paramno >= 0) { - if (param->paramno > zend_hash_num_elements(stmt->bound_param_map)) { + if (param->paramno >= zend_hash_num_elements(stmt->bound_param_map)) { pdo_pgsql_error_stmt(stmt, PGRES_FATAL_ERROR, "HY105"); return 0; } |