diff options
author | Popa Adrian Marius <mariuz@php.net> | 2011-12-28 19:58:37 +0000 |
---|---|---|
committer | Popa Adrian Marius <mariuz@php.net> | 2011-12-28 19:58:37 +0000 |
commit | 853b48dc30fd11c9875fa2dd8688fc761e26756d (patch) | |
tree | e34f67f34976d7a225b39dd9a9cdaab35dcd7097 /ext/pdo_firebird | |
parent | 24227957bfe4fb6503a94bb5702c1f87166f4c24 (diff) | |
download | php-git-853b48dc30fd11c9875fa2dd8688fc761e26756d.tar.gz |
Fixed PDO_Firebird: bug 53280 segfaults if query column count is less than param count
Diffstat (limited to 'ext/pdo_firebird')
-rw-r--r-- | ext/pdo_firebird/firebird_statement.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/pdo_firebird/firebird_statement.c b/ext/pdo_firebird/firebird_statement.c index d52850b95b..b7817f06d7 100644 --- a/ext/pdo_firebird/firebird_statement.c +++ b/ext/pdo_firebird/firebird_statement.c @@ -585,6 +585,9 @@ static int firebird_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_dat if (param->paramno == -1) { return 0; } + if (param->is_param) { + break; + } value = NULL; value_len = 0; caller_frees = 0; |