diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2021-03-17 15:09:18 +0100 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2021-03-17 15:39:50 +0100 |
commit | 128082c86fd024fad25c71f4013f8ed55a43f5e4 (patch) | |
tree | 3dc3c963f18c4172663cb4f97a851ca886b38af6 /ext/pdo_firebird/firebird_statement.c | |
parent | 92a969421cfa26bfdc5a62cb5ea5002d2c7b09f9 (diff) | |
download | php-git-128082c86fd024fad25c71f4013f8ed55a43f5e4.tar.gz |
Initalize return_value before use
Otherwise we likely segfault[1]. We fix the same issue for
PDO_Firebird as well.
[1] <https://ci.appveyor.com/project/php/php-src/builds/38267250/job/6y3ngn1k6ryxx6j3?fullLog=true#L9783>
Closes GH-6785.
Diffstat (limited to 'ext/pdo_firebird/firebird_statement.c')
-rw-r--r-- | ext/pdo_firebird/firebird_statement.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/pdo_firebird/firebird_statement.c b/ext/pdo_firebird/firebird_statement.c index c0ce2618ac..7fad08e2ad 100644 --- a/ext/pdo_firebird/firebird_statement.c +++ b/ext/pdo_firebird/firebird_statement.c @@ -243,6 +243,7 @@ static int firebird_stmt_get_column_meta(pdo_stmt_t *stmt, zend_long colno, zval } } + array_init(return_value); add_assoc_long(return_value, "pdo_type", param_type); return 1; } |