diff options
author | Matteo Beccati <mbeccati@php.net> | 2014-11-01 19:11:43 +0100 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2014-11-11 16:25:31 -0800 |
commit | 2323e95df92e8e11b0afde86e7a3b5055031bda8 (patch) | |
tree | 4690aef423f9622449f54c290d8c70bace49fcd4 /ext/pdo_pgsql/pgsql_statement.c | |
parent | db5ad4c51f5799a21a0b5bc46bbaac475b0910c6 (diff) | |
download | php-git-2323e95df92e8e11b0afde86e7a3b5055031bda8.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 ea5a67633e..1fa7ce4777 100644 --- a/ext/pdo_pgsql/pgsql_statement.c +++ b/ext/pdo_pgsql/pgsql_statement.c @@ -294,7 +294,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; } |